Add VALIDATION_KEY to environment
This commit is contained in:
parent
eb3d051cc7
commit
86287db9ab
|
@ -1,6 +1,7 @@
|
||||||
# TMSERVER
|
# TMSERVER
|
||||||
SERVER_LOGIN=<Dedicated Server Login>
|
SERVER_LOGIN=<Dedicated Server Login>
|
||||||
SERVER_LOGIN_PASSWORD=
|
SERVER_LOGIN_PASSWORD=
|
||||||
|
VALIDATION_KEY=
|
||||||
|
|
||||||
SERVER_SA_PASSWORD=
|
SERVER_SA_PASSWORD=
|
||||||
SERVER_ADM_PASSWORD=
|
SERVER_ADM_PASSWORD=
|
||||||
|
|
|
@ -10,6 +10,7 @@ SERVER_LOGIN_PASSWORD=${SERVER_LOGIN_PASSWORD?:ERROR | ServerLoginPassword is mi
|
||||||
config+=( "SERVER_LOGIN_PASSWORD" )
|
config+=( "SERVER_LOGIN_PASSWORD" )
|
||||||
|
|
||||||
# Optional
|
# Optional
|
||||||
|
VALIDATION_KEY=${VALIDATION_KEY:-} && config+=( "VALIDATION_KEY" )
|
||||||
SERVER_SA_PASSWORD=${SERVER_SA_PASSWORD:-$(pwgen -s 24 1)} && config+=( "SERVER_SA_PASSWORD" )
|
SERVER_SA_PASSWORD=${SERVER_SA_PASSWORD:-$(pwgen -s 24 1)} && config+=( "SERVER_SA_PASSWORD" )
|
||||||
echo "INFO | SERVER_SA_PASSWORD: ${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" )
|
SERVER_ADM_PASSWORD=${SERVER_ADM_PASSWORD:-$(pwgen -s 24 1)} && config+=( "SERVER_ADM_PASSWORD" )
|
||||||
|
|
Loading…
Reference in New Issue