Remove on failure
This commit is contained in:
parent
dda45dc829
commit
e671e97c29
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue