diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2023-03-24 00:33:09 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2023-03-24 00:33:09 -0700 |
commit | 9ef2d8b2721cc691af1f9aef09e86ac8d40ada09 (patch) | |
tree | bd8116bc90fd2ee2e217bf632b02f1cac31360c6 | |
parent | f2a41436c916b7763057e848b66a0158c6846ff5 (diff) | |
download | hetzner-ddns-9ef2d8b2721cc691af1f9aef09e86ac8d40ada09.tar.gz hetzner-ddns-9ef2d8b2721cc691af1f9aef09e86ac8d40ada09.tar.xz |
-rwxr-xr-x | hetzner-ddns (renamed from hetzner-ddns.sh) | 4 | ||||
-rw-r--r-- | systemd/hetzner-ddns@.service | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/hetzner-ddns.sh b/hetzner-ddns index 5e6de74..6d70e69 100755 --- a/hetzner-ddns.sh +++ b/hetzner-ddns @@ -2,8 +2,8 @@ # # Copyright 2022 David Vazgenovich Shakaryan # -# HETZNER_TOKEN=<token> hetzner-ddns.sh <domain> -# HETZNER_TOKEN_FILE=/path/to/token hetzner-ddns.sh <domain> +# HETZNER_TOKEN=<token> hetzner-ddns <domain> +# HETZNER_TOKEN_FILE=/path/to/token hetzner-ddns <domain> # systemctl enable --now "hetzner-ddns@$(systemd-escape <domain>).timer" IP_RESOLVER='https://ifconfig.co' diff --git a/systemd/hetzner-ddns@.service b/systemd/hetzner-ddns@.service index 58e6e6f..5396d71 100644 --- a/systemd/hetzner-ddns@.service +++ b/systemd/hetzner-ddns@.service @@ -2,7 +2,7 @@ Description=Hetzner DDNS updater [Service] -ExecStart=hetzner-ddns.sh %I +ExecStart=hetzner-ddns %I DynamicUser=yes LoadCredentialEncrypted=hetzner_token.cred Environment=HETZNER_TOKEN_FILE=%d/hetzner_token.cred |