From 933a5c0abf7825e31cff4b686bbe45b98bd938cf Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 2 Jan 2016 03:37:44 -0500 Subject: [PATCH] Reload the nginx configuration Otherwise we run the risk of proxying a request to a bad backend --- debian/postrm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/postrm b/debian/postrm index c6746594c..a75895a58 100755 --- a/debian/postrm +++ b/debian/postrm @@ -15,6 +15,8 @@ main() { rm -f /etc/systemd/system/dokku-redeploy.service rm -f /etc/update-motd.d/99-dokku + service nginx reload + if [[ "$1" == "purge" ]]; then rm -f ${DOKKU_ROOT}/.dokkurc ${DOKKU_ROOT}/dokkurc ${DOKKU_ROOT}/tls rm -f ${DOKKU_ROOT}/.ssh/authorized_keys ${DOKKU_ROOT}/.sshcommand