Skip to content

Commit

Permalink
Ensure proper logrotate setup on update
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <[email protected]>
  • Loading branch information
ecdye committed Mar 28, 2021
1 parent 75b0b44 commit bf0ed3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions update.bash
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ if ! [[ -d /usr/local/lib/zram-config ]]; then
mkdir -p /usr/local/lib/zram-config
fi
install -m 755 overlayfs-tools/overlay /usr/local/lib/zram-config/overlay
if ! grep -qs "ReadWritePaths=/usr/local/share/zram-config/log" /lib/systemd/system/logrotate.service; then
echo "ReadWritePaths=/usr/local/share/zram-config/log" >> /lib/systemd/system/logrotate.service
fi

echo "Starting zram-config.service"
systemctl daemon-reload
Expand Down

0 comments on commit bf0ed3a

Please sign in to comment.