Bläddra i källkod

Remove on failure

Bob Mottram 8 år sedan
förälder
incheckning
2784666962
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2
    0
      src/freedombone-app-gnusocial

+ 2
- 0
src/freedombone-app-gnusocial Visa fil

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