From 75b33690f6644d1afbb180b500311b293258b5fb Mon Sep 17 00:00:00 2001 From: Martin Lablans Date: Mon, 10 Jan 2022 15:17:27 +0100 Subject: [PATCH] Remove BRIDGEHEAD_PATH env variable --- install-bridgehead.sh | 6 ------ uninstall-bridgehead.sh | 2 -- 2 files changed, 8 deletions(-) diff --git a/install-bridgehead.sh b/install-bridgehead.sh index b8b694a..df070c7 100755 --- a/install-bridgehead.sh +++ b/install-bridgehead.sh @@ -9,12 +9,6 @@ source site.conf 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/ diff --git a/uninstall-bridgehead.sh b/uninstall-bridgehead.sh index 380313b..a8f7b78 100755 --- a/uninstall-bridgehead.sh +++ b/uninstall-bridgehead.sh @@ -6,8 +6,6 @@ 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