fix: run updns-client with new user
This commit is contained in:
parent
c5a1e13b94
commit
f5913101f0
1 changed files with 7 additions and 0 deletions
|
|
@ -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" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue