From db583246bb29ed6672b55bfc5f96b5b3ced260bc Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Fri, 22 Apr 2016 11:36:51 +0200 Subject: Restart uwsgi and nginx after instances have been updated. Signed-off-by: Cyril Brulebois --- debian/python-django-ishtar.postinst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'debian/python-django-ishtar.postinst') diff --git a/debian/python-django-ishtar.postinst b/debian/python-django-ishtar.postinst index a92b034ed..5efd25548 100644 --- a/debian/python-django-ishtar.postinst +++ b/debian/python-django-ishtar.postinst @@ -47,6 +47,13 @@ case "$1" in echo "updating $instance: OK" done echo "updating all instances: OK" + + # the assumption is that nginx and uwsgi were configured + # through ishtar-prepare-instance, so let's restart them + # unconditionally: + invoke-rc.d uwsgi restart + invoke-rc.d nginx restart + echo "restarting uwsgi and nginx: OK" else echo "found no instances to upgrade in $INSTANCES_FILE" fi -- cgit v1.2.3