Add ADMIN_PASSWORD env variable

# Motivations
Being able to configure the admin password would be quite helpful

# Modifications
- Add `ADMIN_PASSWORD` to the list of environment variables, which adds `--adminpassword` to the server arguments
This commit is contained in:
Twinki
2024-01-19 16:05:51 -05:00
parent a6e0431576
commit 15b5c6881d
5 changed files with 12 additions and 3 deletions

View File

@@ -24,6 +24,10 @@ if [ -n "${SERVER_PASSWORD}" ]; then
STARTCOMMAND="${STARTCOMMAND} -serverpassword=${SERVER_PASSWORD}"
fi
if [ -n "${ADMIN_PASSWORD}" ]; then
STARTCOMMAND="${STARTCOMMAND} -adminpassword=${ADMIN_PASSWORD}"
fi
if [ "${MULTITHREADING}" = true ]; then
STARTCOMMAND="${STARTCOMMAND} -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS"
fi