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

Compare commits

...

2 commits

Author SHA1 Message Date
Alper Kanat
339ad33f39
Merge pull request #20 from jtsymon/jtsymon/secrets
Support passing token in DIGITALOCEAN_TOKEN_FILE
2021-05-18 10:51:39 +03:00
Jeremy Symon
1205095230 Support passing token in DIGITALOCEAN_TOKEN_FILE
This enables passing the token with docker secrets
2021-05-17 20:33:13 +12:00

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