From d859cd25120df128775d4025e9d59730fb3bddd9 Mon Sep 17 00:00:00 2001 From: Noah Hilverling <noah.hilverling@icinga.com> Date: Tue, 22 Jun 2021 11:01:23 +0000 Subject: [PATCH] icinga-provide-go: Append $PATH in "/etc/profile" instead of "/home/builds/.bashrc" --- icinga-provide-go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/icinga-provide-go b/icinga-provide-go index faa2f96..9097da6 100755 --- a/icinga-provide-go +++ b/icinga-provide-go @@ -15,12 +15,7 @@ tar -C /usr/local -xzf go${VERSION_GO}.linux-amd64.tar.gz echo "Deleting Go Binary Archive" rm -rf go${VERSION_GO}.linux-amd64.tar.gz - -if [[ ! -e /home/build/.bashrc ]]; then - touch /home/build/.bashrc -fi - -echo "export PATH=$PATH:/usr/local/go/bin" >> /home/build/.bashrc +echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile # shellcheck disable=SC1091 -source /home/build/.bashrc +source /etc/profile -- GitLab