From a2f0962b76c0de6578940268f225ef27f583cd2d Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 2 Jan 2016 03:37:16 -0500 Subject: [PATCH] Stop any running dokku-installer processes They will cease to function regardless of whether the package has been purged or not --- debian/postrm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/postrm b/debian/postrm index c5da77b89..c6746594c 100755 --- a/debian/postrm +++ b/debian/postrm @@ -5,6 +5,10 @@ readonly DOKKU_ROOT="${DOKKU_ROOT:-/home/dokku}" readonly DOKKU_LIB_ROOT="${DOKKU_LIB_PATH:-/var/lib/dokku}" main() { + if [[ -f /etc/systemd/system/dokku-installer.conf ]] || [[ -f /etc/init/dokku-installer.conf ]]; then + service dokku-installer stop || true + fi + rm -f /etc/init/dokku-installer.conf rm -f /etc/init/dokku-redeploy.conf rm -f /etc/systemd/system/dokku-installer.conf