From b94090b85ea1d7f7e5a274d4038f722874075e26 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 1 Dec 2016 11:17:33 +0000 Subject: [PATCH] Drop the database on install failure --- src/freedombone-app-gnusocial | 1 + src/freedombone-app-postactiv | 1 + 2 files changed, 2 insertions(+) diff --git a/src/freedombone-app-gnusocial b/src/freedombone-app-gnusocial index 2303b966..37677221 100755 --- a/src/freedombone-app-gnusocial +++ b/src/freedombone-app-gnusocial @@ -711,6 +711,7 @@ function install_gnusocial_main { # check gnusocial has a config file gnusocial_config_file=/var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/config.php if [ ! -f $gnusocial_config_file ]; then + drop_database gnusocial rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME echo $'Gnusocial config.php not found' exit 87586 diff --git a/src/freedombone-app-postactiv b/src/freedombone-app-postactiv index 54462c6c..55c8ed9e 100755 --- a/src/freedombone-app-postactiv +++ b/src/freedombone-app-postactiv @@ -555,6 +555,7 @@ function install_postactiv_main { # check postactiv has a config file postactiv_config_file=/var/www/$POSTACTIV_DOMAIN_NAME/htdocs/config.php if [ ! -f $postactiv_config_file ]; then + drop_database postactiv rm -rf /var/www/$POSTACTIV_DOMAIN_NAME echo $'Postactiv config.php not found' exit 87586