fix: change service user

This commit is contained in:
2025-04-29 10:25:19 +02:00
parent f5913101f0
commit e46f2a4ee7

View File

@@ -69,7 +69,6 @@
### 5) Define the oneshot service ### 5) Define the oneshot service
systemd.services.updns-client = lib.mkIf config.cloonar-assistant.updns-client.enable { systemd.services.updns-client = lib.mkIf config.cloonar-assistant.updns-client.enable {
user = "updns-client";
description = "Check external IP and notify API on change"; description = "Check external IP and notify API on change";
after = [ "network-online.target" ]; after = [ "network-online.target" ];
wants = [ "network-online.target" ]; wants = [ "network-online.target" ];
@@ -77,6 +76,7 @@
Type = "oneshot"; Type = "oneshot";
WorkingDirectory = "/var/lib/updns-client"; WorkingDirectory = "/var/lib/updns-client";
ExecStart = "${pkgs.bash}/bin/bash /etc/updns-client/run.sh"; ExecStart = "${pkgs.bash}/bin/bash /etc/updns-client/run.sh";
User = "updns-client";
}; };
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
}; };