Fix can't find bash error.
This commit is contained in:
@@ -107,11 +107,11 @@ ${concatStringsSep "\n" (map (m: " - ${m}") middlewares)}
|
||||
onFailure = [ "service-failure-notify@%n.service" ];
|
||||
startLimitBurst = 5;
|
||||
startLimitIntervalSec = 600;
|
||||
path = [ pkgs.bash pkgs.podman pkgs.podman-compose pkgs.coreutils pkgs.sudo ];
|
||||
path = [ pkgs.podman pkgs.podman-compose pkgs.coreutils pkgs.sudo ];
|
||||
serviceConfig = {
|
||||
Type = "exec";
|
||||
ExecStartPre = [
|
||||
"bash -c 'sleep $((RANDOM % ${toString startDelay}))'"
|
||||
"sleep $(shuf -i 1-${toString startDelay} -n 1)"
|
||||
"- 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";
|
||||
|
||||
@@ -24,8 +24,6 @@ helper.mkPodmanService {
|
||||
};
|
||||
dirPermissions = [
|
||||
"100999:users ${cfg.configDir}"
|
||||
"100999:users /etc/${cfg.traefikStaticConfigDir}"
|
||||
"100999:users /etc/${config.numbus.services.traefikDynamicConfigDir}"
|
||||
];
|
||||
|
||||
# Compose file good
|
||||
|
||||
Reference in New Issue
Block a user