Add or remove dynamic dns have no effect if there is no provider
This commit is contained in:
parent
62d0047c9b
commit
d2a028f75d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue