From 27846669620b432d277f3901b8e8194bce02f84b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 24 Nov 2016 15:44:37 +0000 Subject: [PATCH] Remove on failure --- src/freedombone-app-gnusocial | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedombone-app-gnusocial b/src/freedombone-app-gnusocial index f5ee64eb..c0e23db6 100755 --- a/src/freedombone-app-gnusocial +++ b/src/freedombone-app-gnusocial @@ -689,6 +689,7 @@ function install_gnusocial_main { # Create the configuration gnusocial_installer=/var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs/scripts/install_cli.php if [ ! -f $gnusocial_installer ]; then + rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME echo $'No gnusocial commandline installer found' exit 53026 fi @@ -711,6 +712,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 + rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME echo $'Gnusocial config.php not found' exit 87586 fi