Skip to content
Snippets Groups Projects
Commit d859cd25 authored by Noah Hilverling's avatar Noah Hilverling
Browse files

icinga-provide-go: Append $PATH in "/etc/profile" instead of "/home/builds/.bashrc"

parent 32a8f495
No related branches found
No related tags found
No related merge requests found
Pipeline #18562 passed
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment