Explorar el Código

Set up the web server for cryptpad on the mesh

Bob Mottram hace 7 años
padre
commit
14e21bc6dd
Se han modificado 2 ficheros con 5 adiciones y 1 borrados
  1. 0
    1
      src/freedombone-app-cryptpad
  2. 5
    0
      src/freedombone-image-mesh

+ 0
- 1
src/freedombone-app-cryptpad Ver fichero

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

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