diff --git a/infrastructure/cleanup_sessions.sh b/infrastructure/cleanup_sessions.sh index aee2f7b..649f454 100755 --- a/infrastructure/cleanup_sessions.sh +++ b/infrastructure/cleanup_sessions.sh @@ -3,8 +3,9 @@ # Kill all old processes lxc exec safecontainer -- killall -u unprivileged --older-than 30s -signal KILL -# Delete all old directories +# Delete all old directories, both in container and locally lxc exec safecontainer -- find /tmp/ -mindepth 1 -type d -mmin +1 -exec rm -rf {} \; +find /tmp/ -mindepth 1 -type d -mmin +1 -exec rm -rf {} \; (if [ -d /webapps/compile_server/bin/ ] ; then export PATH=/webapps/compile_server/bin/:$PATH