From 400249f8025ccbef6ad6ec5b7cc0a6f16374e513 Mon Sep 17 00:00:00 2001 From: Christopher Hubing Date: Thu, 9 Feb 2017 15:12:19 -0500 Subject: [PATCH] Update cleanup.sh --- scripts/cleanup.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/cleanup.sh b/scripts/cleanup.sh index ad7a969..e1e39cf 100755 --- a/scripts/cleanup.sh +++ b/scripts/cleanup.sh @@ -4,9 +4,8 @@ dd if=/dev/zero of=/EMPTY bs=1M rm -f /EMPTY -# Remove the centos user -sudo userdel -f centos -echo user centos deletion exited with $? +# Disable the centos user +chsh -s /bin/false # Add `sync` so Packer doesn't quit too early, before the large file is deleted. sync