Remove any previous directory on install
This commit is contained in:
parent
5f5e2810ec
commit
f3f218867e
|
@ -287,15 +287,15 @@ function install_cryptpad_main {
|
||||||
if [ ! -d /var/www/$CRYPTPAD_DOMAIN_NAME ]; then
|
if [ ! -d /var/www/$CRYPTPAD_DOMAIN_NAME ]; then
|
||||||
mkdir /var/www/$CRYPTPAD_DOMAIN_NAME
|
mkdir /var/www/$CRYPTPAD_DOMAIN_NAME
|
||||||
fi
|
fi
|
||||||
if [ ! -d $CRYPTPAD_DIR ]; then
|
if [ -d $CRYPTPAD_DIR ]; then
|
||||||
mkdir -p $CRYPTPAD_DIR
|
rm -rf $CRYPTPAD_DIR
|
||||||
|
fi
|
||||||
|
|
||||||
function_check git_clone
|
function_check git_clone
|
||||||
git_clone $CRYPTPAD_REPO $CRYPTPAD_DIR
|
git_clone $CRYPTPAD_REPO $CRYPTPAD_DIR
|
||||||
if [ ! -d $CRYPTPAD_DIR ]; then
|
if [ ! -d $CRYPTPAD_DIR ]; then
|
||||||
echo $'Unable to clone cryptpad repo'
|
echo $'Unable to clone cryptpad repo'
|
||||||
exit 783251
|
exit 783251
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# an unprivileged user to run as
|
# an unprivileged user to run as
|
||||||
|
|
Loading…
Reference in New Issue