nixos/atop: Don't choke if no existing atop logs
This commit is contained in:
parent
9952d6bc39
commit
476bb88308
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user