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

Do some restarts after ip change

parent 0e89538e
No related branches found
No related tags found
No related merge requests found
......@@ -3372,6 +3372,9 @@ function webadmin_monitor_ip_changes {
fi
/usr/local/bin/${PROJECT_NAME}-notification -s "[${PROJECT_NAME}] Dynamic DNS" -m "IP address changed from $webadmin_ipv4_address to $curr_ipv4" &
systemctl restart ssh
systemctl restart nginx
systemctl restart exim4
fi
webadmin_ipv4_address="$curr_ipv4"
sed -i "s|<p class=\"ipaddress\".*|<p class=\"ipaddress\" translate=\"no\">${curr_ipv4}</p>|g" "$webadmin_install_dir/dynamicdns.html"
......
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