1
0
mirror of https://github.com/playit-cloud/playit-agent.git synced 2025-02-24 04:45:14 +00:00
playit-agent/docker/entrypoint.sh
2024-08-12 16:01:45 -07:00

14 lines
282 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 --secret "${SECRET_KEY}" run