瀏覽代碼

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
     echo "scuttlebot pub started" >> /var/log/${PROJECT_NAME}.log
1324
     echo "scuttlebot pub started" >> /var/log/${PROJECT_NAME}.log
1325
 
1325
 
1326
     # git ssb site
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
 # whether to reset the identity
1332
 # whether to reset the identity