1
0
Fork 0
mirror of https://github.com/tunix/digitalocean-dyndns synced 2024-05-04 08:43:37 +00:00

Support passing token in DIGITALOCEAN_TOKEN_FILE

This enables passing the token with docker secrets
This commit is contained in:
Jeremy Symon 2021-05-17 20:33:13 +12:00
parent a21767ee62
commit 1205095230

View file

@ -14,6 +14,7 @@ die() {
exit 1
}
test -f "$DIGITALOCEAN_TOKEN_FILE" && DIGITALOCEAN_TOKEN="$(cat $DIGITALOCEAN_TOKEN_FILE)"
test -z $DIGITALOCEAN_TOKEN && die "DIGITALOCEAN_TOKEN not set!"
test -z $DOMAIN && die "DOMAIN not set!"
test -z $NAME && die "NAME not set!"