浏览代码

Only enable git ssb if installed

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

+ 3
- 1
src/freedombone-image-mesh 查看文件

@@ -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