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

Remove on failure

parent e671e97c
No related branches found
No related tags found
No related merge requests found
......@@ -689,6 +689,7 @@ function install_gnusocial_main {
# Create the configuration
gnusocial_installer=/var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs/scripts/install_cli.php
if [ ! -f $gnusocial_installer ]; then
rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME
echo $'No gnusocial commandline installer found'
exit 53026
fi
......@@ -711,6 +712,7 @@ function install_gnusocial_main {
# check gnusocial has a config file
gnusocial_config_file=/var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/config.php
if [ ! -f $gnusocial_config_file ]; then
rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME
echo $'Gnusocial 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