Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker Build Images
scripts
Commits
d859cd25
Commit
d859cd25
authored
3 years ago
by
Noah Hilverling
Browse files
Options
Downloads
Patches
Plain Diff
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
3 years ago
Stage: lint
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
icinga-provide-go
+2
-7
2 additions, 7 deletions
icinga-provide-go
with
2 additions
and
7 deletions
icinga-provide-go
+
2
−
7
View file @
d859cd25
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment