瀏覽代碼

Set up the web server for cryptpad on the mesh

Bob Mottram 7 年之前
父節點
當前提交
14e21bc6dd
共有 2 個檔案被更改,包括 5 行新增1 行删除
  1. 0
    1
      src/freedombone-app-cryptpad
  2. 5
    0
      src/freedombone-image-mesh

+ 0
- 1
src/freedombone-app-cryptpad 查看文件

@@ -323,7 +323,6 @@ function mesh_install_cryptpad {
323 323
     echo '' >> $cryptpad_nginx_site
324 324
     echo '  try_files /www/$uri /www/$uri/index.html /customize/$uri;' >> $cryptpad_nginx_site
325 325
     echo '}' >> $cryptpad_nginx_site
326
-    chroot "$rootdir" ln -s /etc/nginx/sites-available/cryptpad /etc/nginx/sites-enabled/cryptpad
327 326
 
328 327
     cd $rootdir$CRYPTPAD_DIR
329 328
 

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

@@ -92,6 +92,11 @@ function enable_cryptpad {
92 92
     if [ ! -d $CRYPTPAD_DIR ]; then
93 93
         return
94 94
     fi
95
+
96
+    # Set up the web server
97
+    ln -s /etc/nginx/sites-available/cryptpad /etc/nginx/sites-enabled/cryptpad
98
+    rm /etc/nginx/sites-enabled/default
99
+
95 100
     if [ ! -d $CRYPTPAD_DIR/customize/api ]; then
96 101
         mkdir -p $CRYPTPAD_DIR/customize/api
97 102
     fi