Files
playit-agent/docker/entrypoint.sh
T
2026-04-14 17:21:14 -07:00

17 lines
308 B
Bash

#!/usr/bin/env sh
SECRET_KEY="${SECRET_KEY:-}"
if [ -z "${SECRET_KEY}" ]; then
SECRET_KEY="${1:-}"
if [ -z "${SECRET_KEY}" ]; then
echo "secret key is required via SECRET_KEY or the first argument" >&2
exit 1
fi
shift
fi
exec playitd --secret "${SECRET_KEY}" --platform-docker "$@" 2>&1