From 1e7e023dd2566a08514925b8f5f560b5e13a11d9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 26 May 2017 15:26:51 +0100 Subject: [PATCH] bower install --- src/freedombone-app-cryptpad | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedombone-app-cryptpad b/src/freedombone-app-cryptpad index 75b633bd..ae70ccd1 100755 --- a/src/freedombone-app-cryptpad +++ b/src/freedombone-app-cryptpad @@ -339,7 +339,7 @@ function install_cryptpad_main { echo '' >> $cryptpad_nginx_site echo ' index index.html;' >> $cryptpad_nginx_site echo '' >> $cryptpad_nginx_site - echo ' location = / {' >> $cryptpad_nginx_site + echo ' location = /cryptpad_websocket {' >> $cryptpad_nginx_site echo " proxy_pass http://localhost:$CRYPTPAD_PORT;" >> $cryptpad_nginx_site echo ' proxy_set_header X-Real-IP $remote_addr;' >> $cryptpad_nginx_site echo ' proxy_set_header Host $host;' >> $cryptpad_nginx_site @@ -390,7 +390,7 @@ function install_cryptpad_main { echo '' >> $cryptpad_nginx_site echo ' index index.html;' >> $cryptpad_nginx_site echo '' >> $cryptpad_nginx_site - echo ' location = / {' >> $cryptpad_nginx_site + echo ' location = /cryptpad_websocket {' >> $cryptpad_nginx_site echo " proxy_pass http://localhost:$CRYPTPAD_PORT;" >> $cryptpad_nginx_site echo ' proxy_set_header X-Real-IP $remote_addr;' >> $cryptpad_nginx_site echo ' proxy_set_header Host $host;' >> $cryptpad_nginx_site @@ -455,7 +455,7 @@ function install_cryptpad { npm install npm install -g bower@1.8.0 - bower install + su -c 'bower install' - cryptpad cp config.example.js config.js if [ ! -f config.js ]; then echo $'Cryptpad config file not found'