Tidying
This commit is contained in:
parent
a9ff261133
commit
9d7e1c5263
|
@ -449,18 +449,6 @@ function upgrade_inadyn_config {
|
||||||
read_config_param DEFAULT_DOMAIN_NAME
|
read_config_param DEFAULT_DOMAIN_NAME
|
||||||
|
|
||||||
grep "alias " "${INADYN_CONFIG_FILE}" | sed 's| alias ||g' > ~/.inadyn_existing_sites
|
grep "alias " "${INADYN_CONFIG_FILE}" | sed 's| alias ||g' > ~/.inadyn_existing_sites
|
||||||
DDNS_HOSTNAMES=
|
|
||||||
while read -r host; do
|
|
||||||
if [ "$DDNS_HOSTNAMES" ]; then
|
|
||||||
DDNS_HOSTNAMES="$DDNS_HOSTNAMES, $host"
|
|
||||||
else
|
|
||||||
DDNS_HOSTNAMES="$host"
|
|
||||||
fi
|
|
||||||
done <~/.inadyn_existing_sites
|
|
||||||
|
|
||||||
if [ ! "$DDNS_HOSTNAMES" ]; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$DDNS_PROVIDER" == "default@freedns.afraid.org" ]]; then
|
if [[ "$DDNS_PROVIDER" == "default@freedns.afraid.org" ]]; then
|
||||||
DDNS_PROVIDER='freedns'
|
DDNS_PROVIDER='freedns'
|
||||||
|
|
Loading…
Reference in New Issue