Add another dependency back; Try to make installing go more idempotent
This commit is contained in:
parent
24cf4a485e
commit
1356885894
|
@ -10,8 +10,10 @@ GOROOT="${UNTARPATH}/go"
|
||||||
GOPATH="${UNTARPATH}/gopath"
|
GOPATH="${UNTARPATH}/gopath"
|
||||||
|
|
||||||
# Install Go
|
# Install Go
|
||||||
sudo wget --progress=bar:force --output-document - ${TARBALL} |\
|
if [ ! -d ${GOROOT} ]; then
|
||||||
tar xfz - -C ${UNTARPATH}
|
sudo wget --progress=bar:force --output-document - ${TARBALL} |\
|
||||||
|
tar xfz - -C ${UNTARPATH}
|
||||||
|
fi
|
||||||
|
|
||||||
# Setup the GOPATH
|
# Setup the GOPATH
|
||||||
sudo mkdir -p ${GOPATH}
|
sudo mkdir -p ${GOPATH}
|
||||||
|
@ -28,7 +30,7 @@ sudo chown -R vagrant:vagrant ${GOPATH}
|
||||||
|
|
||||||
# Install some other stuff we need
|
# Install some other stuff we need
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y curl git mercurial bzr zip
|
sudo apt-get install -y curl make git mercurial bzr zip
|
||||||
SCRIPT
|
SCRIPT
|
||||||
|
|
||||||
Vagrant.configure(2) do |config|
|
Vagrant.configure(2) do |config|
|
||||||
|
|
Loading…
Reference in New Issue