Remove BRIDGEHEAD_PATH env variable
This commit is contained in:
parent
3bab2f6dfd
commit
75b33690f6
|
@ -9,12 +9,6 @@ source site.conf
|
||||||
|
|
||||||
echo "Installing bridgehead"
|
echo "Installing bridgehead"
|
||||||
|
|
||||||
if [ -z "$BRIDGEHEAD_PATH" ] ; then
|
|
||||||
echo "BRIDGEHEAD_PATH=${PWD}" >> /etc/environment
|
|
||||||
echo "Please reboot the system to properly set the enviroment"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
_systemd_path=/etc/systemd/system/
|
_systemd_path=/etc/systemd/system/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,6 @@ systemctl stop bridgehead@"${project}".service
|
||||||
systemctl stop bridgehead-update@"${project}".timer
|
systemctl stop bridgehead-update@"${project}".timer
|
||||||
systemctl stop bridgehead-update@"${project}".service
|
systemctl stop bridgehead-update@"${project}".service
|
||||||
|
|
||||||
sed -i -e "s|BRIDGEHEAD_PATH=.*||" /etc/environment
|
|
||||||
|
|
||||||
cd /etc/systemd/system/
|
cd /etc/systemd/system/
|
||||||
rm bridgehead\@.service
|
rm bridgehead\@.service
|
||||||
rm bridgehead-update\@.timer
|
rm bridgehead-update\@.timer
|
||||||
|
|
Loading…
Reference in New Issue