From f64371b4c8e112850c2af0329c56e6742a859d99 Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Mon, 20 Jul 2020 08:06:29 +0200 Subject: [PATCH] delete unit file on uninstall --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 3f298dc..df54350 100644 --- a/Makefile +++ b/Makefile @@ -55,10 +55,12 @@ install-service: install /etc/MMDVM.ini @sed -i 's/Daemon=0/Daemon=1/' /etc/MMDVM.ini @chown mmdvm:mmdvm /etc/MMDVM.ini +.PHONY uninstall-service: uninstall-service: @systemctl stop mmdvmhost.service || true @systemctl disable mmdvmhost.service || true @rm -f /usr/local/bin/MMDVMHost || true + @rm -f /lib/systemd/system/mmdvmhost.service || true clean: $(RM) MMDVMHost RemoteCommand *.o *.d *.bak *~ GitVersion.h