diff --git a/ingress.tjo.cloud/root/etc/default/dyndns b/ingress.tjo.cloud/root/etc/default/dyndns index b18c3d9..eeb7b96 100644 --- a/ingress.tjo.cloud/root/etc/default/dyndns +++ b/ingress.tjo.cloud/root/etc/default/dyndns @@ -14,4 +14,4 @@ REMOVE_DUPLICATES=true SLEEP_INTERVAL=600 # The domain your subdomain is registered at. (i.e. foo.com for home.foo.com) -DOMAIN=ingress.tjo.cloud \ No newline at end of file +DOMAIN=ingress.tjo.cloud diff --git a/ingress.tjo.cloud/root/usr/local/bin/dyndns b/ingress.tjo.cloud/root/usr/local/bin/dyndns index 302d445..c4b5f0f 100755 --- a/ingress.tjo.cloud/root/usr/local/bin/dyndns +++ b/ingress.tjo.cloud/root/usr/local/bin/dyndns @@ -27,7 +27,7 @@ error() { } test -f "${DIGITALOCEAN_TOKEN_FILE:-}" && DIGITALOCEAN_TOKEN="$(cat "$DIGITALOCEAN_TOKEN_FILE")" -test -z "$DIGITALOCEAN_TOKEN" && error "DIGITALOCEAN_TOKEN not set!" +test -z "${DIGITALOCEAN_TOKEN}" && error "DIGITALOCEAN_TOKEN not set!" test -z "${DOMAIN}" && error "DOMAIN not set!" test -z "${NAME}" && error "NAME not set!"