We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25770f4 commit bbd25b6Copy full SHA for bbd25b6
build-yocto-genivi/run-gocd-agent.sh
@@ -14,12 +14,16 @@ if [ $(pwd) != '/var/lib/go-agent' ]; then
14
echo "Please specify docker run --workdir /var/lib/go-agent"
15
exit 1
16
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
21
22
git config --global user.name "easy-build"
23
git config --global user.email "$(whoami)@$(hostname)"
24
25
cp /etc/default/go-agent go-agent.ORIG
-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
27
service go-agent start
28
29
# EOF
0 commit comments