瀏覽代碼

Remove on failure

Bob Mottram 8 年之前
父節點
當前提交
e671e97c29
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/freedombone-app-postactiv

+ 2
- 0
src/freedombone-app-postactiv 查看文件

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