Sfoglia il codice sorgente

Restart nginx when restarting mesh networking

Bob Mottram 7 anni fa
parent
commit
816bded661
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2
    0
      src/freedombone-image-mesh

+ 2
- 0
src/freedombone-image-mesh Vedi File

872
 function mesh_restart_daemons {
872
 function mesh_restart_daemons {
873
     systemctl restart avahi-daemon
873
     systemctl restart avahi-daemon
874
     systemctl restart tox-bootstrapd
874
     systemctl restart tox-bootstrapd
875
+    systemctl restart nginx
875
     echo $'Daemons restarted' >> $INSTALL_LOG
876
     echo $'Daemons restarted' >> $INSTALL_LOG
876
 }
877
 }
877
 
878
 
1325
 
1326
 
1326
     # git ssb site
1327
     # git ssb site
1327
     if [ -f /etc/nginx/sites-available/git_ssb ]; then
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
         ln -s /etc/nginx/sites-available/git_ssb /etc/nginx/sites-enabled/git_ssb
1330
         ln -s /etc/nginx/sites-available/git_ssb /etc/nginx/sites-enabled/git_ssb
1329
     fi
1331
     fi
1330
 }
1332
 }