From f1dc411c52404d87875b94fdc2de3c81f773d128 Mon Sep 17 00:00:00 2001 From: Joe Ferguson Date: Thu, 30 Nov 2017 18:34:30 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Add=20autoremove=20back,=20Repla?= =?UTF-8?q?ce=20cleanup=20script=20with=20homestead=20script=20(#130)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 2 +- scripts/provision.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 65be9767..d476db73 100644 --- a/readme.md +++ b/readme.md @@ -8,5 +8,5 @@ You probably don't want this repo. * Clone [chef/bento](https://github.com/chef/bento) into same top level folder as this repo. * Run `./bin/copy-to-bento.sh` -* Add `scripts/homestead.sh` to `provisioners.scripts` after `"scripts/hyperv.sh",` in file `ubuntu/ubuntu-16.04-amd64.json` +* Replace `scripts/cleanup.sh` with `scripts/homestead.sh` in file `ubuntu/ubuntu-16.04-amd64.json` * Follow normal [Packer](https://www.packer.io/) practice of building `ubuntu/ubuntu-16.04-amd64.json` diff --git a/scripts/provision.sh b/scripts/provision.sh index 4911fafd..24ec0e48 100644 --- a/scripts/provision.sh +++ b/scripts/provision.sh @@ -422,3 +422,6 @@ chown -R vagrant:vagrant /home/vagrant /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 /sbin/mkswap /var/swap.1 /sbin/swapon /var/swap.1 + +apt-get -y autoremove; +apt-get -y clean;