Restart nginx when restarting mesh networking
This commit is contained in:
parent
5ed6ef6483
commit
816bded661
|
@ -872,6 +872,7 @@ function mesh_amnesic {
|
||||||
function mesh_restart_daemons {
|
function mesh_restart_daemons {
|
||||||
systemctl restart avahi-daemon
|
systemctl restart avahi-daemon
|
||||||
systemctl restart tox-bootstrapd
|
systemctl restart tox-bootstrapd
|
||||||
|
systemctl restart nginx
|
||||||
echo $'Daemons restarted' >> $INSTALL_LOG
|
echo $'Daemons restarted' >> $INSTALL_LOG
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1325,6 +1326,7 @@ function initialise_scuttlebot_pub {
|
||||||
|
|
||||||
# git ssb site
|
# git ssb site
|
||||||
if [ -f /etc/nginx/sites-available/git_ssb ]; then
|
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
|
ln -s /etc/nginx/sites-available/git_ssb /etc/nginx/sites-enabled/git_ssb
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue