浏览代码

Restart nginx when restarting mesh networking

Bob Mottram 7 年前
父节点
当前提交
816bded661
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/freedombone-image-mesh

+ 2
- 0
src/freedombone-image-mesh 查看文件

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