Spotter-VM/zz-cleanup.sh
2018-07-15 21:55:35 +02:00

12 lines
184 B
Bash
Executable File

#!/bin/sh
set -e
# Remove packages not necessary for release
apk --no-cache del .useful
# Clean package cache
rm -rf /var/cache/apk/*
# Remove user settings
rm -rf /root/* /root/.*