Remove on failure

This commit is contained in:
Bob Mottram 2016-11-24 15:43:35 +00:00
parent dda45dc829
commit e671e97c29
1 changed files with 2 additions and 0 deletions

View File

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