From 476bb8830866751e07edf015c78e00c0c951978f Mon Sep 17 00:00:00 2001 From: Robert Kovacsics Date: Mon, 27 Feb 2023 19:49:19 +0000 Subject: [PATCH] nixos/atop: Don't choke if no existing atop logs --- nixos/modules/programs/atop.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/programs/atop.nix b/nixos/modules/programs/atop.nix index 2b14d7c73439..49d40ce7513a 100644 --- a/nixos/modules/programs/atop.nix +++ b/nixos/modules/programs/atop.nix @@ -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