Drop the database on install failure
This commit is contained in:
parent
3695d6a138
commit
b94090b85e
|
@ -711,6 +711,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
|
||||||
|
drop_database gnusocial
|
||||||
rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME
|
rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME
|
||||||
echo $'Gnusocial config.php not found'
|
echo $'Gnusocial config.php not found'
|
||||||
exit 87586
|
exit 87586
|
||||||
|
|
|
@ -555,6 +555,7 @@ function install_postactiv_main {
|
||||||
# check postactiv has a config file
|
# check postactiv has a config file
|
||||||
postactiv_config_file=/var/www/$POSTACTIV_DOMAIN_NAME/htdocs/config.php
|
postactiv_config_file=/var/www/$POSTACTIV_DOMAIN_NAME/htdocs/config.php
|
||||||
if [ ! -f $postactiv_config_file ]; then
|
if [ ! -f $postactiv_config_file ]; then
|
||||||
|
drop_database postactiv
|
||||||
rm -rf /var/www/$POSTACTIV_DOMAIN_NAME
|
rm -rf /var/www/$POSTACTIV_DOMAIN_NAME
|
||||||
echo $'Postactiv config.php not found'
|
echo $'Postactiv config.php not found'
|
||||||
exit 87586
|
exit 87586
|
||||||
|
|
Loading…
Reference in New Issue