Make it invoke bash the Nix way.

This commit is contained in:
Root User 2026-03-03 12:04:26 +01:00
parent b950416a42
commit 4b2f687829
Signed by: root
GPG key ID: 087F0A95E5766D72

View file

@ -763,7 +763,7 @@ in {
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "oneshot";
ExecStart = "/usr/bin/env bash /etc/cloudflare-ddns/update.sh";
ExecStart = "${pkgs.bash}/bin/bash /etc/cloudflare-ddns/update.sh";
User = "traefikprg";
# Make sure the service doesn't fail the boot if the script exits non-zero
Restart = "no";