Bob Mottram преди 8 години
родител
ревизия
e671e97c29
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2
    0
      src/freedombone-app-postactiv

+ 2
- 0
src/freedombone-app-postactiv Целия файл

@@ -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