From 816bded661e85d9d93678eed308970e22eef1fc9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 16 Dec 2017 13:12:51 +0000 Subject: [PATCH] Restart nginx when restarting mesh networking --- src/freedombone-image-mesh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedombone-image-mesh b/src/freedombone-image-mesh index 76d77d9f..e0598dc2 100755 --- a/src/freedombone-image-mesh +++ b/src/freedombone-image-mesh @@ -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 }