From fbef3d521ea6579fe2af5733f18a1a2dfe0ccc2f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 6 Nov 2016 14:26:49 +0000 Subject: [PATCH] Remove any prior installation --- src/freedombone-app-mailpile | 3 +++ 1 file changed, 3 insertions(+) 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