Fix dynv6 script
This commit is contained in:
parent
872e725e3c
commit
fd2ecb420c
1 changed files with 9 additions and 9 deletions
|
@ -64,35 +64,35 @@ source_config() {
|
||||||
}
|
}
|
||||||
|
|
||||||
apply_defaults() {
|
apply_defaults() {
|
||||||
if [ -z ${DYNV6_MAIL_ENABLED} ]; then
|
if [ -z "${DYNV6_MAIL_ENABLED}" ]; then
|
||||||
DYNV6_MAIL_ENABLED=false;
|
DYNV6_MAIL_ENABLED=false;
|
||||||
fi
|
fi
|
||||||
if [ -z ${DYNV6_MAIL_ADDRESS} ]; then
|
if [ -z "${DYNV6_MAIL_ADDRESS}" ]; then
|
||||||
DYNV6_MAIL_ADDRESS="";
|
DYNV6_MAIL_ADDRESS="";
|
||||||
fi
|
fi
|
||||||
if [ -z ${DYNV6_TOKEN} ]; then
|
if [ -z "${DYNV6_TOKEN}" ]; then
|
||||||
DYNV6_TOKEN="";
|
DYNV6_TOKEN="";
|
||||||
fi
|
fi
|
||||||
if [ -z ${DYNV6_HOSTNAME} ]; then
|
if [ -z "${DYNV6_HOSTNAME}" ]; then
|
||||||
DYNV6_HOSTNAME="";
|
DYNV6_HOSTNAME="";
|
||||||
fi
|
fi
|
||||||
if [ -z ${DYNV6_IPV4_ENABLED} ]; then
|
if [ -z "${DYNV6_IPV4_ENABLED}" ]; then
|
||||||
DYNV6_IPV4_ENABLED=true;
|
DYNV6_IPV4_ENABLED=true;
|
||||||
fi
|
fi
|
||||||
if [ -z ${DYNV6_IPV6_ENABLED} ]; then
|
if [ -z "${DYNV6_IPV6_ENABLED}" ]; then
|
||||||
DYNV6_IPV6_ENABLED=true;
|
DYNV6_IPV6_ENABLED=true;
|
||||||
fi
|
fi
|
||||||
if [ -z ${DYNV6_IPV6_INTERFACE} ]; then
|
if [ -z "${DYNV6_IPV6_INTERFACE}" ]; then
|
||||||
DYNV6_IPV6_INTERFACE="eth0";
|
DYNV6_IPV6_INTERFACE="eth0";
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
check_required() {
|
check_required() {
|
||||||
if [ -z ${DYNV6_TOKEN} ]; then
|
if [ -z "${DYNV6_TOKEN}" ]; then
|
||||||
echo "DYNV6_TOKEN is required"
|
echo "DYNV6_TOKEN is required"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
if [ -z ${DYNV6_HOSTNAME} ]; then
|
if [ -z "${DYNV6_HOSTNAME}" ]; then
|
||||||
echo "DYNV6_HOSTNAME is required"
|
echo "DYNV6_HOSTNAME is required"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue