bridgehead/uninstall-bridgehead.sh

18 lines
398 B
Bash
Raw Normal View History

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
systemctl stop bridgehead-update@"${project}".service
sed -i -e "s|BRIDGEHEAD_PATH=.*||" /etc/environment
cd /etc/systemd/system/
rm bridgehead\@.service
rm bridgehead-update\@.timer
rm bridgehead-update\@.service
cd -