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

Remove matrix directory if it exists

parent 05c40210
No related branches found
No related tags found
No related merge requests found
......@@ -737,22 +737,23 @@ function matrix_wait_for_database {
}
function install_home_server {
if [ ! -d /etc/matrix ]; then
if [ -d /etc/matrix ]; then
rm -rf /etc/matrix
fi
if [ -d /repos/matrix ]; then
mkdir /etc/matrix
cp -r -p /repos/matrix/. /etc/matrix
cd /etc/matrix || exit 23
git pull
else
function_check git_clone
git_clone $MATRIX_REPO /etc/matrix
fi
if [ -d /repos/matrix ]; then
mkdir /etc/matrix
cp -r -p /repos/matrix/. /etc/matrix
cd /etc/matrix || exit 23
git pull
else
function_check git_clone
git_clone $MATRIX_REPO /etc/matrix
fi
if [ ! -d /etc/matrix ]; then
echo $'Unable to clone matrix repo'
exit 67
fi
if [ ! -d /etc/matrix ]; then
echo $'Unable to clone matrix repo'
exit 67
fi
cd /etc/matrix || exit 73
......
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