Skip to content

Commit bbd25b6

Browse files
author
Gianpaolo Macario
committed
Enable GO_SERVER configuration via envvars
Signed-off-by: Gianpaolo Macario <gianpaolo_macario@mentor.com>
1 parent 25770f4 commit bbd25b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build-yocto-genivi/run-gocd-agent.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ if [ $(pwd) != '/var/lib/go-agent' ]; then
1414
echo "Please specify docker run --workdir /var/lib/go-agent"
1515
exit 1
1616
fi
17+
if [ "${GO_SERVER}" == "" ]; then
18+
export GO_SERVER=go.genivi.org
19+
echo "GO_SERVER was not defined - setting to ${GO_SERVER}"
20+
fi
1721

1822
git config --global user.name "easy-build"
1923
git config --global user.email "$(whoami)@$(hostname)"
2024

2125
cp /etc/default/go-agent go-agent.ORIG
22-
sed 's/^GO_SERVER=.*$/GO_SERVER=go.genivi.org/g' go-agent.ORIG >/etc/default/go-agent
26+
sed "s/^GO_SERVER=.*$/GO_SERVER=${GO_SERVER}/g" go-agent.ORIG >/etc/default/go-agent
2327
service go-agent start
2428

2529
# EOF

0 commit comments

Comments
 (0)