From 97eb875e048e575ac499338252e99cb2b2f50518 Mon Sep 17 00:00:00 2001 From: Christopher Hubing Date: Fri, 10 Feb 2017 17:50:40 -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 b71c611..abaabba 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 -userdel centos -echo user centos deletion exited with $? +# Disable the centos user +chsh -s /bin/false centos # Add `sync` so Packer doesn't quit too early, before the large file is deleted. sync