Browse Source

Only enable git ssb if installed

Bob Mottram 7 years ago
parent
commit
0fb0010f14
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/freedombone-image-mesh

+ 3
- 1
src/freedombone-image-mesh View File

@@ -1324,7 +1324,9 @@ function initialise_scuttlebot_pub {
1324 1324
     echo "scuttlebot pub started" >> /var/log/${PROJECT_NAME}.log
1325 1325
 
1326 1326
     # git ssb site
1327
-    ln -s /etc/nginx/sites-available/git_ssb /etc/nginx/sites-enabled/git_ssb
1327
+    if [ -f /etc/nginx/sites-available/git_ssb ]; then
1328
+        ln -s /etc/nginx/sites-available/git_ssb /etc/nginx/sites-enabled/git_ssb
1329
+    fi
1328 1330
 }
1329 1331
 
1330 1332
 # whether to reset the identity