Fix can't find sleep error.

This commit is contained in:
Raphaël Numbus
2026-02-25 22:44:00 +01:00
parent 33a00771e5
commit c4a83ff303
+1 -1
View File
@@ -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";