Write directly to /etc/profile.d/gopath.sh instead of /tmp

This commit is contained in:
Igor Vuk 2014-09-14 00:35:54 +02:00
parent 60ec8ad96a
commit e0f0174300
1 changed files with 1 additions and 2 deletions

3
Vagrantfile vendored
View File

@ -16,11 +16,10 @@ cd ${SRCROOT}/src
# Setup the GOPATH
mkdir -p /opt/gopath
cat <<EOF >/tmp/gopath.sh
cat <<EOF >/etc/profile.d/gopath.sh
export GOPATH="/opt/gopath"
export PATH="/opt/go/bin:\$GOPATH/bin:\$PATH"
EOF
mv /tmp/gopath.sh /etc/profile.d/gopath.sh
chmod 0755 /etc/profile.d/gopath.sh
# Make sure the gopath is usable by vagrant