diff --git a/contrib/dokku-installer.py b/contrib/dokku-installer.py index 0e08307e0..302e39345 100755 --- a/contrib/dokku-installer.py +++ b/contrib/dokku-installer.py @@ -155,7 +155,7 @@ class DeleteInstallerThread(object): except: pass - command = "rm -f /etc/init/dokku-installer.conf /etc/systemd/system/dokku-installer.service && stop dokku-installer" + command = "rm -f /etc/init/dokku-installer.conf /etc/systemd/system/dokku-installer.service && (stop dokku-installer || systemctl stop dokku-installer.service)" try: subprocess.call(command, shell=True) except: