2022-01-10 16:31:48 +01:00
|
|
|
#!/bin/bash -e
|
2021-12-22 13:18:41 +01:00
|
|
|
|
|
|
|
source site.conf
|
2022-01-10 16:31:48 +01:00
|
|
|
source lib/functions.sh
|
2021-12-22 13:18:41 +01:00
|
|
|
|
2022-01-10 16:31:48 +01:00
|
|
|
echo "Stopping systemd services and removing bridgehead ..."
|
2021-12-23 14:54:35 +01:00
|
|
|
|
2022-01-10 16:31:48 +01:00
|
|
|
for i in bridgehead\@.service bridgehead-update\@.timer bridgehead-update\@.service; do
|
|
|
|
systemctl disable $i --now
|
|
|
|
rm -v /etc/systemd/system/$i
|
|
|
|
done
|