Quellcode durchsuchen

Change ownership within chroot

Bob Mottram vor 7 Jahren
Ursprung
Commit
9543fea1af
1 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
  1. 6
    1
      src/freedombone-app-cryptpad

+ 6
- 1
src/freedombone-app-cryptpad Datei anzeigen

330
     echo '        //logFeedback: true,' >> $cryptpad_prefix$CRYPTPAD_DIR/config.js
330
     echo '        //logFeedback: true,' >> $cryptpad_prefix$CRYPTPAD_DIR/config.js
331
     echo '        //logRPC: true,' >> $cryptpad_prefix$CRYPTPAD_DIR/config.js
331
     echo '        //logRPC: true,' >> $cryptpad_prefix$CRYPTPAD_DIR/config.js
332
     echo '};' >> $cryptpad_prefix$CRYPTPAD_DIR/config.js
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
 function mesh_install_cryptpad {
341
 function mesh_install_cryptpad {