Skip to content
Snippets Groups Projects
Commit e75e9333 authored by Bob Mottram's avatar Bob Mottram
Browse files

Tidying

parent 32403cbd
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment