Skip to content

Commit

Permalink
Ensure proper permissions on logrotate conf
Browse files Browse the repository at this point in the history
Github: #39
  • Loading branch information
miklschmidt committed Nov 12, 2022
1 parent 6b128f0 commit 2212c01
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/mainsail/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ ln -s /etc/nginx/sites-available/mainsail /etc/nginx/sites-enabled/
# lower nginx rotate cycle to 2 instead 14
sudo sed -i 's/rotate 14/rotate 2/' /etc/logrotate.d/nginx

# Fix logrotate.d permsissions
chmod 644 /etc/logrotate.d/*

### Download and Install Mainsail Web Frontend
pushd /home/${BASE_USER}
sudo -u ${BASE_USER} wget -q --show-progress -O mainsail.zip "${MAINSAIL_URL}"
Expand All @@ -45,4 +48,4 @@ ln -s /var/log/nginx/mainsail-access.log /home/${BASE_USER}/klipper_logs/
ln -s /var/log/nginx/mainsail-error.log /home/${BASE_USER}/klipper_logs/

# Unpack root at the end, so files are modified before
unpack /filesystem/root /
unpack /filesystem/root /

0 comments on commit 2212c01

Please sign in to comment.