Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cookbooks/aws-parallelcluster-platform/files/ami_cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,10 @@ if [ "${ID}${VERSION_ID}" == "centos7" ]; then
rm -f /etc/sysconfig/network-scripts/ifcfg-eth0
fi

# Clean resolv.conf if it's not managed by system
if [ ! -L "/etc/resolv.conf" ]; then
sed -i '/^nameserver/d' /etc/resolv.conf
fi

find /var/log -type f -exec /bin/rm -v {} \;
touch /var/log/lastlog
Loading