Add or remove dynamic dns have no effect if there is no provider

This commit is contained in:
Bob Mottram 2017-05-21 10:25:42 +01:00
parent 62d0047c9b
commit d2a028f75d
1 changed files with 6 additions and 0 deletions

View File

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