fix: run updns-client with new user
This commit is contained in:
@@ -5,6 +5,12 @@
|
|||||||
jq
|
jq
|
||||||
];
|
];
|
||||||
|
|
||||||
|
users.users.updns-client = {
|
||||||
|
isSystemUser = true;
|
||||||
|
group = "updns-client";
|
||||||
|
};
|
||||||
|
users.groups.updns-client = { };
|
||||||
|
|
||||||
sops.secrets.updns-client = {
|
sops.secrets.updns-client = {
|
||||||
owner = "updns-client";
|
owner = "updns-client";
|
||||||
restartUnits = [ "updns-client.service" ];
|
restartUnits = [ "updns-client.service" ];
|
||||||
@@ -63,6 +69,7 @@
|
|||||||
|
|
||||||
### 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" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user