From db412c6a4343dafff3b34bb633dd39538068786b Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Wed, 28 Dec 2022 07:16:34 +0100 Subject: [PATCH] postrm - remove service --- DEBIAN/postrm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DEBIAN/postrm b/DEBIAN/postrm index a3d8b25..f786c67 100755 --- a/DEBIAN/postrm +++ b/DEBIAN/postrm @@ -5,4 +5,9 @@ if [[ -d /etc/fastapi-dls ]]; then rm -r /etc/fastapi-dls fi +if [[ -f /etc/systemd/system/fastapi-dls.service ]]; then + echo "> Removing service file." + rm /etc/systemd/system/fastapi-dls.service +fi + # todo