From bcf1ba2ce14723f3b415674ab83c4518f77a2671 Mon Sep 17 00:00:00 2001 From: Martin Lablans Date: Mon, 10 Jan 2022 16:39:46 +0100 Subject: [PATCH] Make systemctl disable more robust --- uninstall-bridgehead.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/uninstall-bridgehead.sh b/uninstall-bridgehead.sh index b5c3f91..877ca01 100755 --- a/uninstall-bridgehead.sh +++ b/uninstall-bridgehead.sh @@ -5,8 +5,6 @@ source lib/functions.sh echo "Stopping systemd services and removing bridgehead ..." -systemctl disable --now bridgehead@${project}.service -systemctl disable --now bridgehead-update@${project}.timer -systemctl disable --now bridgehead-update@${project}.service +systemctl disable --now bridgehead@${project}.service bridgehead-update@${project}.timer bridgehead-update@${project}.service rm -v /etc/systemd/system/{bridgehead\@.service,bridgehead-update\@.timer,bridgehead-update\@.service}