clear out temp dir of ran user

This commit is contained in:
Brian Seymour 2018-10-24 18:34:25 -05:00
parent d5e61f6922
commit ffee474af8
1 changed files with 4 additions and 1 deletions

View File

@ -86,6 +86,9 @@ lxc-attach -n piston -- \
# process janitor
lxc-attach -n piston -- \
/bin/bash -c "for i in {1..2000}; do pkill -u runner$newinc --signal SIGKILL; done" > /dev/null 2>&1 &
/bin/bash -c "\
for i in {1..100}; do pkill -u runner$newinc --signal SIGKILL; done ;\
find /tmp/* -user runner$newinc -exec /bin/rm -rf {} \;\
"
rm -rf $basepath/tmp/$epoch