Remove any prior installation

This commit is contained in:
Bob Mottram 2016-11-06 14:26:49 +00:00
parent 06a228f3e6
commit fbef3d521e
1 changed files with 3 additions and 0 deletions

View File

@ -159,6 +159,9 @@ function install_mailpile {
fi
cd /var/www/$MAILPILE_DOMAIN_NAME
if [ -d /var/www/$MAILPILE_DOMAIN_NAME/htdocs ]; then
rm -rf /var/www/$MAILPILE_DOMAIN_NAME/htdocs
fi
git_clone $MAILPILE_REPO htdocs
cd htdocs
git checkout $MAILPILE_COMMIT -b $MAILPILE_COMMIT