exclude mounts (e.g.: /proc) from cleanup

This commit is contained in:
Matyas Markovics
2019-03-13 09:59:33 +01:00
parent 089258a746
commit 9d29b23db2

View File

@@ -9,7 +9,7 @@ rm -rf /tmp/* /var/tmp/*
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
# clean up python bytecode # clean up python bytecode
find / -name *.pyc -delete find / -mount -name *.pyc -delete
find / -name *__pycache__* -delete find / -mount -name *__pycache__* -delete
rm -f /etc/ssh/ssh_host_* rm -f /etc/ssh/ssh_host_*