2017-11-02 13:45:31 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
# Update and ensure we have apt-add-repository
|
|
|
|
apt-get update
|
|
|
|
apt-get install -y software-properties-common
|
|
|
|
|
|
|
|
apt-get install -y bzr \
|
|
|
|
curl \
|
2018-10-12 08:36:20 -04:00
|
|
|
gcc \
|
2017-11-02 13:45:31 -04:00
|
|
|
git \
|
|
|
|
make \
|
|
|
|
mercurial \
|
|
|
|
zip
|
|
|
|
|
|
|
|
# Ensure we cd into the working directory on login
|
|
|
|
if ! grep "cd /opt/gopath/src/github.com/hashicorp/packer" /home/vagrant/.profile ; then
|
|
|
|
echo 'cd /opt/gopath/src/github.com/hashicorp/packer' >> /home/vagrant/.profile
|
|
|
|
fi
|