Stop any running dokku-installer processes

They will cease to function regardless of whether the package has been purged or not
This commit is contained in:
Jose Diaz-Gonzalez committed 2016-01-02 03:37:16 -05:00
1 parent 73b3c4af40
commit a2f0962b76
1 file changed
+4
+4
View File
@@ -5,6 +5,10 @@ readonly DOKKU_ROOT="${DOKKU_ROOT:-/home/dokku}"
readonly DOKKU_LIB_ROOT="${DOKKU_LIB_PATH:-/var/lib/dokku}" readonly DOKKU_LIB_ROOT="${DOKKU_LIB_PATH:-/var/lib/dokku}"
main() { 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-installer.conf
rm -f /etc/init/dokku-redeploy.conf rm -f /etc/init/dokku-redeploy.conf
rm -f /etc/systemd/system/dokku-installer.conf rm -f /etc/systemd/system/dokku-installer.conf