You've already forked code_examples_server
mirror of
https://github.com/AdaCore/code_examples_server.git
synced 2026-02-12 12:45:18 -08:00
Add a step to cleanup the sessions on the container
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user