diff --git a/usr/local/bin/dynv6 b/usr/local/bin/dynv6 index 86edc00..b008e16 100755 --- a/usr/local/bin/dynv6 +++ b/usr/local/bin/dynv6 @@ -48,6 +48,12 @@ source_config() { apply_defaults() { [[ -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() { if [[ -z ${DYNV6_TOKEN} ]]; then