github.com/hashicorp/packer@v1.14.3/scripts/vagrant-linux-priv-config.sh (about) 1 #!/usr/bin/env bash 2 # Copyright (c) HashiCorp, Inc. 3 # SPDX-License-Identifier: BUSL-1.1 4 5 6 export DEBIAN_FRONTEND=noninteractive 7 8 # Update and ensure we have apt-add-repository 9 apt-get update 10 apt-get install -y software-properties-common 11 12 apt-get install -y bzr \ 13 curl \ 14 gcc \ 15 git \ 16 make \ 17 mercurial \ 18 zip 19 20 # Ensure we cd into the working directory on login 21 if ! grep "cd /opt/gopath/src/github.com/hashicorp/packer" /home/vagrant/.profile ; then 22 echo 'cd /opt/gopath/src/github.com/hashicorp/packer' >> /home/vagrant/.profile 23 fi