Skip to content
Snippets Groups Projects
Commit e671e97c authored by Bob Mottram's avatar Bob Mottram
Browse files

Remove on failure

parent dda45dc8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment