mirror of
https://github.com/tunix/digitalocean-dyndns
synced 2024-12-22 12:59:52 +00:00
Support passing token in DIGITALOCEAN_TOKEN_FILE
This enables passing the token with docker secrets
This commit is contained in:
parent
a21767ee62
commit
1205095230
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ die() {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test -f "$DIGITALOCEAN_TOKEN_FILE" && DIGITALOCEAN_TOKEN="$(cat $DIGITALOCEAN_TOKEN_FILE)"
|
||||||
test -z $DIGITALOCEAN_TOKEN && die "DIGITALOCEAN_TOKEN not set!"
|
test -z $DIGITALOCEAN_TOKEN && die "DIGITALOCEAN_TOKEN not set!"
|
||||||
test -z $DOMAIN && die "DOMAIN not set!"
|
test -z $DOMAIN && die "DOMAIN not set!"
|
||||||
test -z $NAME && die "NAME not set!"
|
test -z $NAME && die "NAME not set!"
|
||||||
|
|
Loading…
Reference in a new issue