Skip to content

Commit

Permalink
SQLITE: fix Write-Ahead Log option and file permissions
Browse files Browse the repository at this point in the history
sqlite Write-Ahead Log option and file permissions are set on a file named "ironic.db",
but Ironic file used by Ironic is "ironic.sqlite" as bellow.

ironic-config/ironic.conf.j2:
connection = sqlite:////var/lib/ironic/ironic.sqlite

fix #549

Signed-off-by: LALLAU Bertrand <bertrand.lallau@gmail.com>
  • Loading branch information
LALLAU Bertrand authored and LALLAU Bertrand committed Sep 2, 2024
1 parent c51460a commit d864bd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ COPY ironic-config/apache2-ipxe.conf.j2 /etc/httpd-ipxe.conf.j2

# DATABASE
RUN mkdir -p /var/lib/ironic && \
sqlite3 /var/lib/ironic/ironic.sqlite "pragma journal_mode=wal" && \
dnf remove -y sqlite
sqlite3 /var/lib/ironic/ironic.sqlite "pragma journal_mode=wal" && \
dnf remove -y sqlite

# configure non-root user and set relevant permissions
RUN configure-nonroot.sh && \
Expand Down

0 comments on commit d864bd4

Please sign in to comment.