diff --git a/src/freedombone-app-cryptpad b/src/freedombone-app-cryptpad index 92ddd366..ea74bc12 100755 --- a/src/freedombone-app-cryptpad +++ b/src/freedombone-app-cryptpad @@ -330,7 +330,12 @@ function cryptpad_create_config { echo ' //logFeedback: true,' >> $cryptpad_prefix$CRYPTPAD_DIR/config.js echo ' //logRPC: true,' >> $cryptpad_prefix$CRYPTPAD_DIR/config.js echo '};' >> $cryptpad_prefix$CRYPTPAD_DIR/config.js - chown cryptpad:cryptpad $cryptpad_prefix$CRYPTPAD_DIR/config.js + + if [[ "$cryptpad_install_type" != "mesh" ]]; then + chown cryptpad:cryptpad $cryptpad_prefix$CRYPTPAD_DIR/config.js + else + chroot "$rootdir" chown cryptpad:cryptpad $CRYPTPAD_DIR/config.js + fi } function mesh_install_cryptpad {