Add defaults
This commit is contained in:
parent
df8fcbcb88
commit
fd3710cb5c
1 changed files with 6 additions and 0 deletions
|
@ -48,6 +48,12 @@ source_config() {
|
||||||
|
|
||||||
apply_defaults() {
|
apply_defaults() {
|
||||||
[[ -z ${DYNV6_MAIL_ENABLED} ]] && DYNV6_MAIL_ENABLED=false;
|
[[ -z ${DYNV6_MAIL_ENABLED} ]] && DYNV6_MAIL_ENABLED=false;
|
||||||
|
[[ -z ${DYNV6_MAIL_ADDRESS} ]] && DYNV6_MAIL_ADDRESS="";
|
||||||
|
[[ -z ${DYNV6_TOKEN} ]] && DYNV6_TOKEN="";
|
||||||
|
[[ -z ${DYNV6_HOSTNAME} ]] && DYNV6_HOSTNAME="";
|
||||||
|
[[ -z ${DYNV6_DEVICE} ]] && DYNV6_DEVICE="";
|
||||||
|
[[ -z ${DYNV6_NETMASK} ]] && DYNV6_NETMASK="";
|
||||||
|
|
||||||
}
|
}
|
||||||
check_required() {
|
check_required() {
|
||||||
if [[ -z ${DYNV6_TOKEN} ]]; then
|
if [[ -z ${DYNV6_TOKEN} ]]; then
|
||||||
|
|
Loading…
Reference in a new issue