mirror of
https://github.com/tunix/digitalocean-dyndns
synced 2024-11-01 00:25:24 +00:00
Merge pull request #20 from jtsymon/jtsymon/secrets
Support passing token in DIGITALOCEAN_TOKEN_FILE
This commit is contained in:
commit
339ad33f39
1 changed files with 1 additions and 0 deletions
|
@ -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!"
|
||||
|
|
Loading…
Reference in a new issue