Make systemctl disable more robust

This commit is contained in:
Martin Lablans 2022-01-10 16:39:46 +01:00
parent 31ab3ddef2
commit bcf1ba2ce1
1 changed files with 1 additions and 3 deletions

View File

@ -5,8 +5,6 @@ source lib/functions.sh
echo "Stopping systemd services and removing bridgehead ..." echo "Stopping systemd services and removing bridgehead ..."
systemctl disable --now bridgehead@${project}.service systemctl disable --now bridgehead@${project}.service bridgehead-update@${project}.timer bridgehead-update@${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} rm -v /etc/systemd/system/{bridgehead\@.service,bridgehead-update\@.timer,bridgehead-update\@.service}