Write directly to /etc/profile.d/gopath.sh instead of /tmp
This commit is contained in:
parent
60ec8ad96a
commit
e0f0174300
|
@ -16,11 +16,10 @@ cd ${SRCROOT}/src
|
||||||
|
|
||||||
# Setup the GOPATH
|
# Setup the GOPATH
|
||||||
mkdir -p /opt/gopath
|
mkdir -p /opt/gopath
|
||||||
cat <<EOF >/tmp/gopath.sh
|
cat <<EOF >/etc/profile.d/gopath.sh
|
||||||
export GOPATH="/opt/gopath"
|
export GOPATH="/opt/gopath"
|
||||||
export PATH="/opt/go/bin:\$GOPATH/bin:\$PATH"
|
export PATH="/opt/go/bin:\$GOPATH/bin:\$PATH"
|
||||||
EOF
|
EOF
|
||||||
mv /tmp/gopath.sh /etc/profile.d/gopath.sh
|
|
||||||
chmod 0755 /etc/profile.d/gopath.sh
|
chmod 0755 /etc/profile.d/gopath.sh
|
||||||
|
|
||||||
# Make sure the gopath is usable by vagrant
|
# Make sure the gopath is usable by vagrant
|
||||||
|
|
Loading…
Reference in New Issue