fix: run updns-client with new user
This commit is contained in:
@@ -5,6 +5,12 @@
|
||||
jq
|
||||
];
|
||||
|
||||
users.users.updns-client = {
|
||||
isSystemUser = true;
|
||||
group = "updns-client";
|
||||
};
|
||||
users.groups.updns-client = { };
|
||||
|
||||
sops.secrets.updns-client = {
|
||||
owner = "updns-client";
|
||||
restartUnits = [ "updns-client.service" ];
|
||||
@@ -63,6 +69,7 @@
|
||||
|
||||
### 5) Define the oneshot service
|
||||
systemd.services.updns-client = lib.mkIf config.cloonar-assistant.updns-client.enable {
|
||||
user = "updns-client";
|
||||
description = "Check external IP and notify API on change";
|
||||
after = [ "network-online.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
|
||||
Reference in New Issue
Block a user