Add defaults

This commit is contained in:
Alexander Schäferdiek 2019-09-08 14:54:49 +02:00
parent df8fcbcb88
commit fd3710cb5c

View file

@ -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