diff --git a/src/freedombone-app-cryptpad b/src/freedombone-app-cryptpad index 9f8c30b8..c675a1b3 100755 --- a/src/freedombone-app-cryptpad +++ b/src/freedombone-app-cryptpad @@ -226,9 +226,6 @@ function mesh_install_cryptpad { if [ -d $rootdir$CRYPTPAD_DIR ]; then rm -rf $rootdir$CRYPTPAD_DIR fi - if [ -f $rootdir/root/$PROJECT_NAME/img/icon_cryptpad.png ]; then - cp $rootdir/root/$PROJECT_NAME/img/icon_cryptpad.png $rootdir/etc/cryptpad/icon_cryptpad.png - fi git_clone $CRYPTPAD_REPO $rootdir$CRYPTPAD_DIR @@ -237,6 +234,10 @@ function mesh_install_cryptpad { exit 783251 fi + if [ -f $rootdir/root/$PROJECT_NAME/img/icon_cryptpad.png ]; then + cp $rootdir/root/$PROJECT_NAME/img/icon_cryptpad.png $rootdir$CRYPTPAD_DIR/icon_cryptpad.png + fi + # an unprivileged user to run as chroot "$rootdir" useradd -d $CRYPTPAD_DIR/ cryptpad