This commit is contained in:
Bob Mottram 2018-05-13 21:44:41 +01:00
parent 32403cbd1c
commit e75e9333fe
1 changed files with 1 additions and 3 deletions

View File

@ -229,9 +229,7 @@ function add_ddns_domain {
echo '}'; } > "${INADYN_CONFIG_FILE}"
fi
if ! grep -q "$CURRENT_DDNS_DOMAIN" "${INADYN_CONFIG_FILE}"; then
sed -i "s|hostname .*|hostname = $DEFAULT_DOMAIN_NAME"
fi
sed -i "s|hostname .*|hostname = $DEFAULT_DOMAIN_NAME"
chmod 600 "${INADYN_CONFIG_FILE}"
systemctl daemon-reload