nixos/atop: Don't choke if no existing atop logs

This commit is contained in:
Robert Kovacsics 2023-02-27 19:49:19 +00:00
parent 9952d6bc39
commit 476bb88308

View file

@ -142,6 +142,7 @@ in
# convert remainings logs and start eventually
atop.serviceConfig.ExecStartPre = pkgs.writeShellScript "atop-update-log-format" ''
set -e -u
shopt -s nullglob
for logfile in "$LOGPATH"/atop_*
do
${atop}/bin/atopconvert "$logfile" "$logfile".new