mirror of
https://github.com/playit-cloud/playit-agent.git
synced 2025-02-23 22:55:16 +00:00
14 lines
305 B
Bash
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
|