Fix permissions of $GOPATH in Vagrantfile
Technically just the true->false is needed. The `chown -R` was a first attempt that didn't fix the bug, but it's a nice simplification.
This commit is contained in:
parent
d4be9b22d4
commit
566f2ee061
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue