Browse Source

Change ownership within chroot

Bob Mottram 7 years ago
parent
commit
9543fea1af
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      src/freedombone-app-cryptpad

+ 6
- 1
src/freedombone-app-cryptpad View File

@@ -330,7 +330,12 @@ function cryptpad_create_config {
330 330
     echo '        //logFeedback: true,' >> $cryptpad_prefix$CRYPTPAD_DIR/config.js
331 331
     echo '        //logRPC: true,' >> $cryptpad_prefix$CRYPTPAD_DIR/config.js
332 332
     echo '};' >> $cryptpad_prefix$CRYPTPAD_DIR/config.js
333
-    chown cryptpad:cryptpad $cryptpad_prefix$CRYPTPAD_DIR/config.js
333
+
334
+    if [[ "$cryptpad_install_type" != "mesh" ]]; then
335
+        chown cryptpad:cryptpad $cryptpad_prefix$CRYPTPAD_DIR/config.js
336
+    else
337
+        chroot "$rootdir" chown cryptpad:cryptpad $CRYPTPAD_DIR/config.js
338
+    fi
334 339
 }
335 340
 
336 341
 function mesh_install_cryptpad {