Remove on failure
This commit is contained in:
parent
e671e97c29
commit
2784666962
|
@ -689,6 +689,7 @@ function install_gnusocial_main {
|
||||||
# Create the configuration
|
# Create the configuration
|
||||||
gnusocial_installer=/var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs/scripts/install_cli.php
|
gnusocial_installer=/var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs/scripts/install_cli.php
|
||||||
if [ ! -f $gnusocial_installer ]; then
|
if [ ! -f $gnusocial_installer ]; then
|
||||||
|
rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME
|
||||||
echo $'No gnusocial commandline installer found'
|
echo $'No gnusocial commandline installer found'
|
||||||
exit 53026
|
exit 53026
|
||||||
fi
|
fi
|
||||||
|
@ -711,6 +712,7 @@ function install_gnusocial_main {
|
||||||
# check gnusocial has a config file
|
# check gnusocial has a config file
|
||||||
gnusocial_config_file=/var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/config.php
|
gnusocial_config_file=/var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/config.php
|
||||||
if [ ! -f $gnusocial_config_file ]; then
|
if [ ! -f $gnusocial_config_file ]; then
|
||||||
|
rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME
|
||||||
echo $'Gnusocial config.php not found'
|
echo $'Gnusocial config.php not found'
|
||||||
exit 87586
|
exit 87586
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue