From c14826a68e4069ae7cff5b44d67b9face8e8b2a6 Mon Sep 17 00:00:00 2001 From: Christopher Hubing Date: Thu, 9 Feb 2017 13:43:42 -0500 Subject: [PATCH] Update cleanup.sh --- scripts/cleanup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/cleanup.sh b/scripts/cleanup.sh index b995cf0..b71c611 100755 --- a/scripts/cleanup.sh +++ b/scripts/cleanup.sh @@ -4,5 +4,9 @@ dd if=/dev/zero of=/EMPTY bs=1M rm -f /EMPTY +# Remove the centos user +userdel centos +echo user centos deletion exited with $? + # Add `sync` so Packer doesn't quit too early, before the large file is deleted. sync