Fixed startDelay

This commit is contained in:
Raphaël Numbus
2026-02-25 22:58:00 +01:00
parent f95cdf5d26
commit 2a3a2f3832
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ ${concatStringsSep "\n" (map (m: " - ${m}") middlewares)}
Type = "exec";
ExecStartPre = [
"${pkgs.bash}/bin/bash -c 'sleep $((RANDOM % ${toString startDelay}))'"
"- ${pkgs.sudo}/bin/sudo -u numbus-admin podman-compose ${envFileArg} -f /etc/podman/${name}/compose.yaml pull"
"${pkgs.sudo}/bin/sudo -u numbus-admin podman-compose ${envFileArg} -f /etc/podman/${name}/compose.yaml pull"
];
ExecStart = "${pkgs.sudo}/bin/sudo -u numbus-admin podman-compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml up --remove-orphans";
ExecStop = "${pkgs.sudo}/bin/sudo -u numbus-admin podman-compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml down";