Procházet zdrojové kódy

Set up the web server for cryptpad on the mesh

Bob Mottram před 7 roky
rodič
revize
14e21bc6dd
2 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 0
    1
      src/freedombone-app-cryptpad
  2. 5
    0
      src/freedombone-image-mesh

+ 0
- 1
src/freedombone-app-cryptpad Zobrazit soubor

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

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