Copy icon after directory creation

This commit is contained in:
Bob Mottram 2017-10-24 11:05:35 +01:00
parent 333c4d7656
commit d81a4b0827
1 changed files with 4 additions and 3 deletions

View File

@ -226,9 +226,6 @@ function mesh_install_cryptpad {
if [ -d $rootdir$CRYPTPAD_DIR ]; then if [ -d $rootdir$CRYPTPAD_DIR ]; then
rm -rf $rootdir$CRYPTPAD_DIR rm -rf $rootdir$CRYPTPAD_DIR
fi 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 git_clone $CRYPTPAD_REPO $rootdir$CRYPTPAD_DIR
@ -237,6 +234,10 @@ function mesh_install_cryptpad {
exit 783251 exit 783251
fi 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 # an unprivileged user to run as
chroot "$rootdir" useradd -d $CRYPTPAD_DIR/ cryptpad chroot "$rootdir" useradd -d $CRYPTPAD_DIR/ cryptpad