Merge pull request #3196 from hashicorp/b-fix-vagrant-perms

Fix permissions of $GOPATH in Vagrantfile
This commit is contained in:
Michael Schurter 2017-09-12 10:02:19 -07:00 committed by GitHub
commit 42cdb6a9e4
2 changed files with 2 additions and 6 deletions

2
Vagrantfile vendored
View File

@ -19,7 +19,7 @@ Vagrant.configure(2) do |config|
'/opt/gopath/src/github.com/hashicorp/nomad'
vmCfg.vm.provision "shell",
privileged: true,
privileged: false,
path: './scripts/vagrant-linux-unpriv-bootstrap.sh'
end

View File

@ -21,11 +21,7 @@ install_go
# Ensure that the GOPATH tree is owned by vagrant:vagrant
mkdir -p /opt/gopath
chown vagrant:vagrant \
/opt/gopath \
/opt/gopath/src \
/opt/gopath/src/github.com \
/opt/gopath/src/github.com/hashicorp
chown -R vagrant:vagrant /opt/gopath
# Ensure Go is on PATH
if [ ! -e /usr/bin/go ] ; then