Restart nginx when restarting mesh networking

This commit is contained in:
Bob Mottram 2017-12-16 13:12:51 +00:00
parent 5ed6ef6483
commit 816bded661
1 changed files with 2 additions and 0 deletions

View File

@ -872,6 +872,7 @@ function mesh_amnesic {
function mesh_restart_daemons {
systemctl restart avahi-daemon
systemctl restart tox-bootstrapd
systemctl restart nginx
echo $'Daemons restarted' >> $INSTALL_LOG
}
@ -1325,6 +1326,7 @@ function initialise_scuttlebot_pub {
# git ssb site
if [ -f /etc/nginx/sites-available/git_ssb ]; then
sed -i "s|server_name .*|server_name ${HOSTNAME}.local;|g" /etc/nginx/sites-available/git_ssb
ln -s /etc/nginx/sites-available/git_ssb /etc/nginx/sites-enabled/git_ssb
fi
}