From f2a41436c916b7763057e848b66a0158c6846ff5 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 21 Mar 2023 02:41:58 -0700 Subject: use encrypted token in systemd service --- systemd/hetzner-ddns@.service | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'systemd/hetzner-ddns@.service') diff --git a/systemd/hetzner-ddns@.service b/systemd/hetzner-ddns@.service index 28a25fd..58e6e6f 100644 --- a/systemd/hetzner-ddns@.service +++ b/systemd/hetzner-ddns@.service @@ -2,6 +2,7 @@ Description=Hetzner DDNS updater [Service] -Type=oneshot -ExecStart=hetzner-ddns.sh %i +ExecStart=hetzner-ddns.sh %I DynamicUser=yes +LoadCredentialEncrypted=hetzner_token.cred +Environment=HETZNER_TOKEN_FILE=%d/hetzner_token.cred -- cgit v1.2.3-70-g09d2