Ensure that install script is removed after upgrades
This commit is contained in:
parent
857ba54fa4
commit
4794c1d1b7
|
@ -350,6 +350,11 @@ function upgrade_gnusocial {
|
||||||
function_check set_repo_commit
|
function_check set_repo_commit
|
||||||
set_repo_commit /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs "gnusocial commit" "$GNUSOCIAL_COMMIT" $GNUSOCIAL_REPO
|
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
|
function_check gnusocial_running_script
|
||||||
gnusocial_running_script
|
gnusocial_running_script
|
||||||
}
|
}
|
||||||
|
|
|
@ -200,6 +200,11 @@ function upgrade_postactiv {
|
||||||
function_check set_repo_commit
|
function_check set_repo_commit
|
||||||
set_repo_commit /var/www/$POSTACTIV_DOMAIN_NAME/htdocs "postactiv commit" "$POSTACTIV_COMMIT" $POSTACTIV_REPO
|
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
|
#function_check postactiv_running_script
|
||||||
#postactiv_running_script
|
#postactiv_running_script
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue