瀏覽代碼

Install bower again

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

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

@@ -286,6 +286,7 @@ function install_cryptpad {
286 286
 
287 287
     npm install
288 288
     npm install -g bower@1.8.0
289
+    chown -R cryptpad:cryptpad $CRYPTPAD_DIR
289 290
     su -c 'bower install' - cryptpad
290 291
     cp config.example.js config.js
291 292
     if [ ! -f config.js ]; then
@@ -333,6 +334,10 @@ function install_cryptpad {
333 334
     fi
334 335
     chown -R cryptpad:cryptpad $CRYPTPAD_DIR
335 336
 
337
+    # install again
338
+    cd $CRYPTPAD_DIR
339
+    su -c 'bower install' - cryptpad
340
+
336 341
     systemctl restart nginx
337 342
 
338 343
     APP_INSTALLED=1