From 5918aa35215ee99a80361e9fb291b0d9edabc79e Mon Sep 17 00:00:00 2001 From: ryluth <38672086+ryluth@users.noreply.github.com> Date: Fri, 27 Sep 2019 11:07:14 +0200 Subject: [PATCH] Update entrypoint-tmserver.sh --- docker-tmserver/entrypoint-tmserver.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-tmserver/entrypoint-tmserver.sh b/docker-tmserver/entrypoint-tmserver.sh index 7c242de..39747fe 100755 --- a/docker-tmserver/entrypoint-tmserver.sh +++ b/docker-tmserver/entrypoint-tmserver.sh @@ -14,10 +14,12 @@ cd /opt/tmserver # Evaluate all the available environment variables if [[ -z "${SERVER_LOGIN}" ]]; then echo "Server account login is missing. Server cannot start." + echo "Please set environment variable SERVER_LOGIN." exit 9 fi if [[ -z "${SERVER_LOGIN_PASSWORD}" ]]; then echo "Server account password is missing. Server cannot start." + echo "Please set environment variable SERVER_LOGIN_PASSWORD." exit 9 fi if [[ -z "${SERVER_PORT}" ]]; then @@ -33,12 +35,14 @@ if [[ -z "${SERVER_SA_PASSWORD}" ]]; then echo "Might aswell leave it as randomly generated" SERVER_SA_PASSWORD=$(pwgen -s 12) echo "SuperAdmin password: ${SERVER_SA_PASSWORD}" + echo "Please write this down or pipe the docker logs to a file." fi if [[ -z "${SERVER_ADM_PASSWORD}" ]]; then echo "No Admin password was set. Generating a random one. You can change it afterwards but it's also not that important" echo "Might aswell leave it as randomly generated" SERVER_ADM_PASSWORD=$(pwgen -s 12) echo "Admin password: ${SERVER_ADM_PASSWORD}" + echo "Please write this down or pipe the docker logs to a file." fi if [[ -z "${SERVER_NAME}" ]]; then echo "No server name was set. Defaulting to 'Trackmania Server'"