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
18 lines
524 B
Bash
Executable File
18 lines
524 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# Kill all old processes
|
|
lxc exec safecontainer -- killall -u unprivileged --older-than 30s -signal KILL
|
|
|
|
# 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
|
|
cd /webapps/compile_server/cloudchecker
|
|
else
|
|
cd ..
|
|
fi
|
|
./manage.py clear_sessions
|
|
)
|