diff options
-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 |