Ensure that install script is removed after upgrades

This commit is contained in:
Bob Mottram 2016-12-11 13:16:22 +00:00
parent 857ba54fa4
commit 4794c1d1b7
2 changed files with 10 additions and 0 deletions

View File

@ -350,6 +350,11 @@ function upgrade_gnusocial {
function_check set_repo_commit
set_repo_commit /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs "gnusocial commit" "$GNUSOCIAL_COMMIT" $GNUSOCIAL_REPO
# Ensure that installation script is removed
if [ -f /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/install.php ]; then
rm /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/install.php
fi
function_check gnusocial_running_script
gnusocial_running_script
}

View File

@ -200,6 +200,11 @@ function upgrade_postactiv {
function_check set_repo_commit
set_repo_commit /var/www/$POSTACTIV_DOMAIN_NAME/htdocs "postactiv commit" "$POSTACTIV_COMMIT" $POSTACTIV_REPO
# Ensure that installation script is removed
if [ -f /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/install.php ]; then
rm /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/install.php
fi
#function_check postactiv_running_script
#postactiv_running_script
}