From 622d8997d11d19dbd6385ac32ded666e60d22a4a Mon Sep 17 00:00:00 2001 From: Christopher Hubing Date: Thu, 9 Feb 2017 14:26:06 -0500 Subject: [PATCH] Update cleanup.sh --- scripts/cleanup.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/cleanup.sh b/scripts/cleanup.sh index 2cde7c1..ad7a969 100755 --- a/scripts/cleanup.sh +++ b/scripts/cleanup.sh @@ -4,9 +4,8 @@ dd if=/dev/zero of=/EMPTY bs=1M rm -f /EMPTY -ps -elf # Remove the centos user -userdel centos +sudo userdel -f centos echo user centos deletion exited with $? # Add `sync` so Packer doesn't quit too early, before the large file is deleted.