diff --git a/icinga-provide-go b/icinga-provide-go index faa2f968eb0fbce8d6fa468e1cc7995fae9e1550..9097da67f7826d1dee8673dc406ccc8c6c4164e0 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