diff --git a/src/freedombone-app-mailpile b/src/freedombone-app-mailpile index d9295b6b..6e316ee4 100755 --- a/src/freedombone-app-mailpile +++ b/src/freedombone-app-mailpile @@ -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