terminate each tmp cleanup

This commit is contained in:
Brian Seymour 2021-01-12 12:50:50 -06:00
parent 13a932d438
commit c3416b8628
1 changed files with 4 additions and 4 deletions

View File

@ -146,10 +146,10 @@ timeout -s KILL 10 \
lxc-attach --clear-env -n piston -- \
/bin/bash -l -c "\
for i in {1..100}; do pkill -u runner$newinc --signal SIGKILL; done ;\
find /tmp -user runner$newinc -exec /bin/rm -rf {} \;\
find /var/tmp -user runner$newinc -exec /bin/rm -rf {} \;\
find /dev/shm -user runner$newinc -exec /bin/rm -rf {} \;\
find /run/lock -user runner$newinc -exec /bin/rm -rf {} \;\
find /tmp -user runner$newinc -exec /bin/rm -rf {} \; ;\
find /var/tmp -user runner$newinc -exec /bin/rm -rf {} \; ;\
find /dev/shm -user runner$newinc -exec /bin/rm -rf {} \; ;\
find /run/lock -user runner$newinc -exec /bin/rm -rf {} \; ;\
" > /dev/null 2>&1 &
rm -rf $basepath/tmp/$epoch