2017-12-19 19:22:36 +01:00
|
|
|
#!/bin/sh
|
2017-06-30 18:25:20 +02:00
|
|
|
|
|
|
|
# Remove packages not necessary for release
|
2017-12-19 19:22:36 +01:00
|
|
|
apk del .useful
|
2017-06-30 18:25:20 +02:00
|
|
|
|
|
|
|
# Clean package cache
|
2017-12-19 19:22:36 +01:00
|
|
|
rm -rf /var/cache/apk/*
|
2017-08-31 21:54:13 +02:00
|
|
|
|
|
|
|
# Remove user settings
|
|
|
|
rm -rf /root/* /root/.*
|
|
|
|
|
|
|
|
# Remove git metadata
|
|
|
|
find / -name '.git*' -exec rm -rf {} \;
|