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 d62dc56 commit da82ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ COPY ironic-config/apache2-ipxe.conf.j2 /etc/httpd-ipxe.conf.j2

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

# configure non-root user and set relevant permissions
Expand Down

0 comments on commit da82ee0

Please sign in to comment.