From e0f017430062ffae6c5322735d4d18aa6a867784 Mon Sep 17 00:00:00 2001 From: Igor Vuk Date: Sun, 14 Sep 2014 00:35:54 +0200 Subject: [PATCH] Write directly to /etc/profile.d/gopath.sh instead of /tmp --- Vagrantfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index f1249a750..1d286330e 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -16,11 +16,10 @@ cd ${SRCROOT}/src # Setup the GOPATH mkdir -p /opt/gopath -cat </tmp/gopath.sh +cat </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