Skip to content
Permalink
Browse files

Update cleanup.sh

  • Loading branch information
chubing committed Feb 10, 2017
1 parent 1cc9174 commit 97eb875e048e575ac499338252e99cb2b2f50518
Showing with 2 additions and 3 deletions.
  1. +2 −3 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

0 comments on commit 97eb875

Please sign in to comment.
You can’t perform that action at this time.