Fixed sudo executable not found.
This commit is contained in:
@@ -242,10 +242,10 @@ helper.mkPodmanService {
|
|||||||
description = "Podman container crontab : ${name}";
|
description = "Podman container crontab : ${name}";
|
||||||
after = [ "${name}.service" "${name}-quirk.service" ];
|
after = [ "${name}.service" "${name}-quirk.service" ];
|
||||||
onFailure = [ "service-failure-notify@%n.service" ];
|
onFailure = [ "service-failure-notify@%n.service" ];
|
||||||
path = [ pkgs.coreutils pkgs.sudo pkgs.podman ];
|
path = [ pkgs.sudo pkgs.podman ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = "sudo -u numbus-admin podman exec --user www-data nextcloud-server php -f /var/www/html/cron.php";
|
ExecStart = "${pkgs.sudo}/bin/sudo -u numbus-admin podman exec --user www-data nextcloud-server php -f /var/www/html/cron.php";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user