From 31ab3ddef2fc4782e4d7ff114a4e7e9d8d1e098a Mon Sep 17 00:00:00 2001 From: Martin Lablans Date: Mon, 10 Jan 2022 16:36:54 +0100 Subject: [PATCH] Fix uninstall-bridgehead.sh --- uninstall-bridgehead.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/uninstall-bridgehead.sh b/uninstall-bridgehead.sh index d56cb1a..b5c3f91 100755 --- a/uninstall-bridgehead.sh +++ b/uninstall-bridgehead.sh @@ -5,7 +5,8 @@ source lib/functions.sh echo "Stopping systemd services and removing bridgehead ..." -for i in bridgehead\@.service bridgehead-update\@.timer bridgehead-update\@.service; do - systemctl disable $i --now - rm -v /etc/systemd/system/$i -done +systemctl disable --now bridgehead@${project}.service +systemctl disable --now bridgehead-update@${project}.timer +systemctl disable --now bridgehead-update@${project}.service + +rm -v /etc/systemd/system/{bridgehead\@.service,bridgehead-update\@.timer,bridgehead-update\@.service}