Initial sandbox infrastructure setup.

This commit is contained in:
Overlord committed 2026-10-12 21:00:12 +02:00
1 parent 6ac68a7025
commit 0737b28897
10 files changed
+262

No files matched your search

+15
View File
@@ -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