Try to fix newuidmap exec not found

This commit is contained in:
Raphaël Numbus
2026-03-03 21:46:15 +01:00
parent f190eb2040
commit cca3e0d42b
+4 -4
View File
@@ -106,7 +106,7 @@ with lib;
onFailure = [ "service-failure-notify@%n.service" ]; onFailure = [ "service-failure-notify@%n.service" ];
startLimitBurst = 5; startLimitBurst = 5;
startLimitIntervalSec = 600; startLimitIntervalSec = 600;
path = [ pkgs.coreutils pkgs.podman-compose ]; path = [ pkgs.coreutils pkgs.podman pkgs.podman-compose ];
serviceConfig = { serviceConfig = {
Type = "exec"; Type = "exec";
User = "numbus-admin"; User = "numbus-admin";
@@ -114,10 +114,10 @@ with lib;
TimeoutStartSec = "1000"; TimeoutStartSec = "1000";
ExecStartPre = [ ExecStartPre = [
"${pkgs.bash}/bin/bash -c 'sleep $((RANDOM % ${toString startDelay}))'" "${pkgs.bash}/bin/bash -c 'sleep $((RANDOM % ${toString startDelay}))'"
"/run/wrappers/bin/podman compose -f /etc/podman/${name}/compose.yaml pull" "${pkgs.podman}/bin/podman compose -f /etc/podman/${name}/compose.yaml pull"
]; ];
ExecStart = "/run/wrappers/bin/podman compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml up --remove-orphans"; ExecStart = "${pkgs.podman}/bin/podman compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml up --remove-orphans";
ExecStop = "/run/wrappers/bin/podman compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml down"; ExecStop = "${pkgs.podman}/bin/podman compose ${envFileArg} --in-pod ${toString pod} -f /etc/podman/${name}/compose.yaml down";
Restart = "on-failure"; Restart = "on-failure";
RestartSec = "3m"; RestartSec = "3m";
}; };