Skip to content

Commit

Permalink
Merge pull request #550 from blallau/fix549
Browse files Browse the repository at this point in the history
🐛SQLITE: fix Write-Ahead Log option and file permissions
  • Loading branch information
metal3-io-bot committed Sep 23, 2024
2 parents cedf092 + 2692d51 commit b8a9a22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion configure-nonroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ chmod 664 /etc/ironic/* /etc/httpd/conf/* /etc/httpd/conf.d/*

chown -R root:"${IRONIC_GROUP}" /var/lib/ironic
chmod 2775 /var/lib/ironic
chmod 664 /var/lib/ironic/ironic.db
chmod 664 /var/lib/ironic/ironic.sqlite

# dnsmasq, and the capabilities required to run it as non-root user
chown -R root:"${IRONIC_GROUP}" /etc/dnsmasq.conf /var/lib/dnsmasq
Expand Down

0 comments on commit b8a9a22

Please sign in to comment.