1
0
mirror of https://github.com/playit-cloud/playit-agent.git synced 2024-09-22 07:21:32 +00:00
playit-agent/docker/entrypoint.sh
2024-08-21 10:59:52 -07:00

14 lines
305 B
Bash

#!/usr/bin/env sh
if [ -z "${SECRET_KEY}" ]; then
echo "SECRET_KEY environment variable missing, using CLI argument";
SECRET_KEY="$1"
if [ -z "${SECRET_KEY}" ]; then
echo "secret key (first argument) is missing";
exit 1;
fi
fi
playit -s --secret "${SECRET_KEY}" --platform_docker start