diff --git a/update.bash b/update.bash index 790de52..703b028 100755 --- a/update.bash +++ b/update.bash @@ -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