summaryrefslogtreecommitdiff
path: root/debian/python-django-ishtar.postinst
diff options
context:
space:
mode:
authorCyril Brulebois <cyril@debamax.com>2016-04-22 11:36:51 +0200
committerCyril Brulebois <cyril@debamax.com>2016-04-22 11:59:14 +0200
commitdb583246bb29ed6672b55bfc5f96b5b3ced260bc (patch)
tree4eb5641d42e34a5f7734d077892b470f1b35723e /debian/python-django-ishtar.postinst
parentabb9db59a556162a4be80058d52a907761fd076e (diff)
downloadIshtar-db583246bb29ed6672b55bfc5f96b5b3ced260bc.tar.bz2
Ishtar-db583246bb29ed6672b55bfc5f96b5b3ced260bc.zip
Restart uwsgi and nginx after instances have been updated.
Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Diffstat (limited to 'debian/python-django-ishtar.postinst')
-rw-r--r--debian/python-django-ishtar.postinst7
1 files changed, 7 insertions, 0 deletions
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