diff --git a/src/freedombone-utils-dns b/src/freedombone-utils-dns index 1914ab15..db7a605d 100755 --- a/src/freedombone-utils-dns +++ b/src/freedombone-utils-dns @@ -139,6 +139,9 @@ function add_ddns_domain { if [[ $ONION_ONLY != "no" ]]; then return fi + if [[ "$DDNS_PROVIDER" == 'none' ]]; then + return + fi if [ ! -f /etc/inadyn.conf ]; then echo $'Unable to find inadyn configuration file /etc/inadyn.conf' exit 5745 @@ -173,6 +176,9 @@ function remove_ddns_domain { if [[ $ONION_ONLY != "no" ]]; then return fi + if [[ "$DDNS_PROVIDER" == 'none' ]]; then + return + fi if [ ! -f /etc/inadyn.conf ]; then echo $'Unable to find inadyn configuration file /etc/inadyn.conf' exit 5745