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

Restart nginx when restarting mesh networking

parent 5ed6ef64
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
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