Tidying
This commit is contained in:
parent
32403cbd1c
commit
e75e9333fe
|
@ -229,9 +229,7 @@ function add_ddns_domain {
|
||||||
echo '}'; } > "${INADYN_CONFIG_FILE}"
|
echo '}'; } > "${INADYN_CONFIG_FILE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -q "$CURRENT_DDNS_DOMAIN" "${INADYN_CONFIG_FILE}"; then
|
sed -i "s|hostname .*|hostname = $DEFAULT_DOMAIN_NAME"
|
||||||
sed -i "s|hostname .*|hostname = $DEFAULT_DOMAIN_NAME"
|
|
||||||
fi
|
|
||||||
chmod 600 "${INADYN_CONFIG_FILE}"
|
chmod 600 "${INADYN_CONFIG_FILE}"
|
||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
Loading…
Reference in New Issue