Copy icon after directory creation
This commit is contained in:
parent
333c4d7656
commit
d81a4b0827
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue