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";
+1 -1
View File
@@ -19,7 +19,7 @@ helper.mkPodmanService {
scheme = "https";
dependencies = [ "network.target" "multi-user.target" ];
dataDir = false;
delaySec = 10;
startDelay = 10;
generatedSecrets = {
PIHOLE_PASSWORD = "xkcdpass -n 10 -d -";
};
+1 -1
View File
@@ -18,7 +18,7 @@ helper.mkPodmanService {
reverseProxied = false;
dependencies = [ "network.target" "multi-user.target" ];
dataDir = false;
delaySec = 10;
startDelay = 10;
generatedSecrets = {
CLOUDFLARE_DNS_API_TOKEN = "cat ${config.numbus.mail.smtpPasswordPath}";
};