Skip to content
Snippets Groups Projects
Commit d81a4b08 authored by Bob Mottram's avatar Bob Mottram
Browse files

Copy icon after directory creation

parent 333c4d76
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment