diff --git a/modules/services/lib.nix b/modules/services/lib.nix index 64de896..a6cc7e4 100644 --- a/modules/services/lib.nix +++ b/modules/services/lib.nix @@ -111,7 +111,7 @@ ${concatStringsSep "\n" (map (m: " - ${m}") middlewares)} serviceConfig = { Type = "exec"; ExecStartPre = [ - "${pkgs.coreutils}/bin/sleep $(shuf -i 1-${toString startDelay} -n 1)" + "${pkgs.bash}/bin/bash -c 'sleep $((RANDOM % ${toString startDelay}))'" "- sudo -u numbus-admin podman-compose ${envFileArg} -f /etc/podman/${name}/compose.yaml pull" ]; ExecStart = "sudo -u numbus-admin podman-compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml up --remove-orphans";