|
@@ -226,9 +226,6 @@ function mesh_install_cryptpad {
|
226
|
226
|
if [ -d $rootdir$CRYPTPAD_DIR ]; then
|
227
|
227
|
rm -rf $rootdir$CRYPTPAD_DIR
|
228
|
228
|
fi
|
229
|
|
- if [ -f $rootdir/root/$PROJECT_NAME/img/icon_cryptpad.png ]; then
|
230
|
|
- cp $rootdir/root/$PROJECT_NAME/img/icon_cryptpad.png $rootdir/etc/cryptpad/icon_cryptpad.png
|
231
|
|
- fi
|
232
|
229
|
|
233
|
230
|
git_clone $CRYPTPAD_REPO $rootdir$CRYPTPAD_DIR
|
234
|
231
|
|
|
@@ -237,6 +234,10 @@ function mesh_install_cryptpad {
|
237
|
234
|
exit 783251
|
238
|
235
|
fi
|
239
|
236
|
|
|
237
|
+ if [ -f $rootdir/root/$PROJECT_NAME/img/icon_cryptpad.png ]; then
|
|
238
|
+ cp $rootdir/root/$PROJECT_NAME/img/icon_cryptpad.png $rootdir$CRYPTPAD_DIR/icon_cryptpad.png
|
|
239
|
+ fi
|
|
240
|
+
|
240
|
241
|
# an unprivileged user to run as
|
241
|
242
|
chroot "$rootdir" useradd -d $CRYPTPAD_DIR/ cryptpad
|
242
|
243
|
|