Fix dokku-installer.service removal

This commit is contained in:
Edgars Beigarts committed 2016-12-28 07:32:19 +02:00
1 parent 1f91b33f46
commit 171e9625f6
1 file changed
+2 -2
+2 -2
View File
@@ -11,13 +11,13 @@ readonly DOKKU_LIB_ROOT="${DOKKU_LIB_PATH:-/var/lib/dokku}"
readonly DOKKU_LOGS_DIR="${DOKKU_LOGS_DIR:="/var/log/dokku"}" readonly DOKKU_LOGS_DIR="${DOKKU_LOGS_DIR:="/var/log/dokku"}"
main() { main() {
if [[ -f /etc/systemd/system/dokku-installer.conf ]] || [[ -f /etc/init/dokku-installer.conf ]]; then if [[ -f /etc/systemd/system/dokku-installer.service ]] || [[ -f /etc/init/dokku-installer.conf ]]; then
service dokku-installer stop || true service dokku-installer stop || true
fi 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.service
rm -f /etc/systemd/system/dokku-redeploy.service rm -f /etc/systemd/system/dokku-redeploy.service
rm -f /etc/update-motd.d/99-dokku rm -f /etc/update-motd.d/99-dokku