Initial sandbox infrastructure setup.
This commit is contained in:
1 parent
6ac68a7025
commit
0737b28897
10 files changed
+262
No files matched your search
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -r /var/status/status ]; then
|
||||
cat /var/status/status
|
||||
else
|
||||
echo "server status unavailable"
|
||||
fi
|
||||
|
||||
[ -n "$SESSION_ID" ] && echo "session ${SESSION_ID}"
|
||||
|
||||
if [ -n "$SESSION_EXPIRES_AT" ]; then
|
||||
remaining=$((SESSION_EXPIRES_AT - $(date +%s)))
|
||||
[ "$remaining" -lt 0 ] && remaining=0
|
||||
printf 'expires in %d:%02d\n' $((remaining / 60)) $((remaining % 60))
|
||||
fi
|
||||
Reference in new issue
Block a user