From fd2ecb420c438ba8946ab4d20e34bb66d2c3f694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Sch=C3=A4ferdiek?= Date: Sun, 10 Jul 2022 18:35:26 +0200 Subject: [PATCH] Fix dynv6 script --- usr/local/bin/dynv6 | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/usr/local/bin/dynv6 b/usr/local/bin/dynv6 index ab8e2d0..6bce31b 100755 --- a/usr/local/bin/dynv6 +++ b/usr/local/bin/dynv6 @@ -64,35 +64,35 @@ source_config() { } apply_defaults() { - if [ -z ${DYNV6_MAIL_ENABLED} ]; then + if [ -z "${DYNV6_MAIL_ENABLED}" ]; then DYNV6_MAIL_ENABLED=false; fi - if [ -z ${DYNV6_MAIL_ADDRESS} ]; then + if [ -z "${DYNV6_MAIL_ADDRESS}" ]; then DYNV6_MAIL_ADDRESS=""; fi - if [ -z ${DYNV6_TOKEN} ]; then + if [ -z "${DYNV6_TOKEN}" ]; then DYNV6_TOKEN=""; fi - if [ -z ${DYNV6_HOSTNAME} ]; then + if [ -z "${DYNV6_HOSTNAME}" ]; then DYNV6_HOSTNAME=""; fi - if [ -z ${DYNV6_IPV4_ENABLED} ]; then + if [ -z "${DYNV6_IPV4_ENABLED}" ]; then DYNV6_IPV4_ENABLED=true; fi - if [ -z ${DYNV6_IPV6_ENABLED} ]; then + if [ -z "${DYNV6_IPV6_ENABLED}" ]; then DYNV6_IPV6_ENABLED=true; fi - if [ -z ${DYNV6_IPV6_INTERFACE} ]; then + if [ -z "${DYNV6_IPV6_INTERFACE}" ]; then DYNV6_IPV6_INTERFACE="eth0"; fi } check_required() { - if [ -z ${DYNV6_TOKEN} ]; then + if [ -z "${DYNV6_TOKEN}" ]; then echo "DYNV6_TOKEN is required" exit 1; fi - if [ -z ${DYNV6_HOSTNAME} ]; then + if [ -z "${DYNV6_HOSTNAME}" ]; then echo "DYNV6_HOSTNAME is required" exit 1; fi