#!/bin/bash # Check if the container is started for the first time if [ ! -f /setup.lock ]; then # Get valid stream key if [[ ! -z "$STREAM_KEY" ]]; then VALID_STREAM_KEY=$STREAM_KEY else VALID_STREAM_KEY=$(tr -dc A-Za-z0-9