From c4a83ff303deeef31c5313d55b7497c714f965f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Wed, 25 Feb 2026 22:44:00 +0100 Subject: [PATCH] Fix `can't find sleep` error. --- modules/services/lib.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";