summaryrefslogtreecommitdiff
path: root/systemd/hetzner-ddns@.service
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2023-03-21 02:41:58 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2023-03-21 02:41:58 -0700
commitf2a41436c916b7763057e848b66a0158c6846ff5 (patch)
treee6c6e283ef28431b2d14056d48d3cca304cee3f9 /systemd/hetzner-ddns@.service
parent8b01502f680274b2dec1c7b62b30ca52babacb40 (diff)
downloadhetzner-ddns-f2a41436c916b7763057e848b66a0158c6846ff5.tar.gz
hetzner-ddns-f2a41436c916b7763057e848b66a0158c6846ff5.tar.xz
use encrypted token in systemd service
Diffstat (limited to 'systemd/hetzner-ddns@.service')
-rw-r--r--systemd/hetzner-ddns@.service5
1 files changed, 3 insertions, 2 deletions
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