Browse Source

Remove any previous failed hubzilla install

Bob Mottram 7 years ago
parent
commit
bc8666ad17
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/freedombone-app-hubzilla

+ 5
- 0
src/freedombone-app-hubzilla View File

@@ -335,6 +335,11 @@ function install_hubzilla {
335 335
     function_check install_mariadb
336 336
     install_mariadb
337 337
 
338
+    if [ -d /var/www/$HUBZILLA_DOMAIN_NAME ]; then
339
+        rm -rf /var/www/$HUBZILLA_DOMAIN_NAME
340
+        drop_database hubzilla
341
+    fi
342
+
338 343
     function_check get_mariadb_password
339 344
     get_mariadb_password
340 345