Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update cleanup.sh
chubing committed Feb 10, 2017
1 parent 1cc9174 commit 97eb875
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions 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.