From 86287db9ab9e361e9134a50ae577bb41eeac7d58 Mon Sep 17 00:00:00 2001 From: fanyx Date: Wed, 26 Jun 2024 12:24:55 +0200 Subject: [PATCH] Add VALIDATION_KEY to environment --- .env-example | 1 + tmserver/bin/eval_env.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/.env-example b/.env-example index 20c0a81..55968eb 100644 --- a/.env-example +++ b/.env-example @@ -1,6 +1,7 @@ # TMSERVER SERVER_LOGIN= SERVER_LOGIN_PASSWORD= +VALIDATION_KEY= SERVER_SA_PASSWORD= SERVER_ADM_PASSWORD= diff --git a/tmserver/bin/eval_env.sh b/tmserver/bin/eval_env.sh index 907a0ad..fcaabe0 100755 --- a/tmserver/bin/eval_env.sh +++ b/tmserver/bin/eval_env.sh @@ -10,6 +10,7 @@ SERVER_LOGIN_PASSWORD=${SERVER_LOGIN_PASSWORD?:ERROR | ServerLoginPassword is mi config+=( "SERVER_LOGIN_PASSWORD" ) # Optional +VALIDATION_KEY=${VALIDATION_KEY:-} && config+=( "VALIDATION_KEY" ) SERVER_SA_PASSWORD=${SERVER_SA_PASSWORD:-$(pwgen -s 24 1)} && config+=( "SERVER_SA_PASSWORD" ) echo "INFO | SERVER_SA_PASSWORD: ${SERVER_SA_PASSWORD}" SERVER_ADM_PASSWORD=${SERVER_ADM_PASSWORD:-$(pwgen -s 24 1)} && config+=( "SERVER_ADM_PASSWORD" )