Browse Source

Remove on failure

Bob Mottram 8 years ago
parent
commit
e671e97c29
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/freedombone-app-postactiv

+ 2
- 0
src/freedombone-app-postactiv View File

@@ -533,6 +533,7 @@ function install_postactiv_main {
533 533
     # Create the configuration
534 534
     postactiv_installer=/var/www/${POSTACTIV_DOMAIN_NAME}/htdocs/scripts/install_cli.php
535 535
     if [ ! -f $postactiv_installer ]; then
536
+        rm -rf /var/www/$POSTACTIV_DOMAIN_NAME
536 537
         echo $'No postactiv commandline installer found'
537 538
         exit 53026
538 539
     fi
@@ -555,6 +556,7 @@ function install_postactiv_main {
555 556
     # check postactiv has a config file
556 557
     postactiv_config_file=/var/www/$POSTACTIV_DOMAIN_NAME/htdocs/config.php
557 558
     if [ ! -f $postactiv_config_file ]; then
559
+        rm -rf /var/www/$POSTACTIV_DOMAIN_NAME
558 560
         echo $'Postactiv config.php not found'
559 561
         exit 87586
560 562
     fi