1
0
Fork 0
mirror of https://github.com/tunix/digitalocean-dyndns synced 2024-12-22 04:49:52 +00:00

Merge pull request #20 from jtsymon/jtsymon/secrets

Support passing token in DIGITALOCEAN_TOKEN_FILE
This commit is contained in:
Alper Kanat 2021-05-18 10:51:39 +03:00 committed by GitHub
commit 339ad33f39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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!"