From bc8666ad17ec2774559b9d2bf73462fdc86ae0fd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 18 Feb 2018 11:43:44 +0000 Subject: [PATCH] Remove any previous failed hubzilla install --- src/freedombone-app-hubzilla | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/freedombone-app-hubzilla b/src/freedombone-app-hubzilla index a0871a1f..3c02872f 100755 --- a/src/freedombone-app-hubzilla +++ b/src/freedombone-app-hubzilla @@ -335,6 +335,11 @@ function install_hubzilla { function_check install_mariadb install_mariadb + if [ -d /var/www/$HUBZILLA_DOMAIN_NAME ]; then + rm -rf /var/www/$HUBZILLA_DOMAIN_NAME + drop_database hubzilla + fi + function_check get_mariadb_password get_mariadb_password