This commit is contained in:
2026-03-05 21:59:23 +01:00
parent 2d4f53351a
commit 9e68ac42f2
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#!/usr/bin/env sh
set -eu
APP_ENV="${APP_ENV:-staging}"
if [ "$APP_ENV" = "live" ]; then
SCRIPT="/app/live/tools/pi_control/terminal_entry.sh"
else
SCRIPT="/app/staging/tools/pi_control/terminal_entry.sh"
fi
if [ ! -f "$SCRIPT" ]; then
echo "terminal_entry.sh not found at $SCRIPT"
exit 1
fi
exec ttyd --writable --url-arg "$SCRIPT"