Przeglądaj źródła

Remove on failure

Bob Mottram 8 lat temu
rodzic
commit
2784666962
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2
    0
      src/freedombone-app-gnusocial

+ 2
- 0
src/freedombone-app-gnusocial Wyświetl plik

@@ -689,6 +689,7 @@ function install_gnusocial_main {
689 689
     # Create the configuration
690 690
     gnusocial_installer=/var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs/scripts/install_cli.php
691 691
     if [ ! -f $gnusocial_installer ]; then
692
+        rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME
692 693
         echo $'No gnusocial commandline installer found'
693 694
         exit 53026
694 695
     fi
@@ -711,6 +712,7 @@ function install_gnusocial_main {
711 712
     # check gnusocial has a config file
712 713
     gnusocial_config_file=/var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/config.php
713 714
     if [ ! -f $gnusocial_config_file ]; then
715
+        rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME
714 716
         echo $'Gnusocial config.php not found'
715 717
         exit 87586
716 718
     fi