Spotter-VM/zz-cleanup.sh

14 lines
229 B
Bash
Raw Normal View History

#!/bin/sh
# Remove packages not necessary for release
apk del .useful
# Clean package cache
rm -rf /var/cache/apk/*
# Remove user settings
rm -rf /root/* /root/.*
# Remove git metadata
find / -name '.git*' -exec rm -rf {} \;