Spotter-VM/zz-cleanup.sh
Disassembler 182c9eb10b Minor script updates
- Make init.d scripts executable
- Change shebang from bash to sh
- Alpinize zz-cleanup.sh
2017-12-19 19:27:44 +01:00

14 lines
229 B
Bash
Executable File

#!/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 {} \;