2021-12-22 13:18:41 +01:00
|
|
|
echo "Stoping systemd services and removing bridgehead"
|
|
|
|
|
|
|
|
source site.conf
|
|
|
|
|
|
|
|
systemctl stop bridgehead@"${project}".service
|
|
|
|
systemctl stop bridgehead-update@"${project}".timer
|
2021-12-23 14:54:35 +01:00
|
|
|
systemctl stop bridgehead-update@"${project}".service
|
|
|
|
|
2022-01-04 15:26:34 +01:00
|
|
|
sed -i -e "s|BRIDGEHEAD_PATH=.*||" /etc/environment
|
|
|
|
|
|
|
|
|
2021-12-23 14:54:35 +01:00
|
|
|
cd /etc/systemd/system/
|
|
|
|
rm bridgehead\@.service
|
|
|
|
rm bridgehead-update\@.timer
|
|
|
|
rm bridgehead-update\@.service
|
|
|
|
|
|
|
|
cd -
|