diff --git a/.env.sample b/.env.sample index b8ce971..f66476e 100644 --- a/.env.sample +++ b/.env.sample @@ -25,3 +25,5 @@ SECRET_COOKIE_SECRET_VERSION=v1 # length=30 # Disable SSL encryption (not recommended) #COMPOSE_FILE="$COMPOSE_FILE:compose.insecure.yml" + +CONFIG_FILE="config.json" diff --git a/entrypoint.sh b/entrypoint.sh index 81411bc..0a2806a 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,7 +1,9 @@ #!/bin/sh -if [ ! -f .wiki/config.json ]; then - cp initial-config/config.json .wiki/config.json +config_file="$HOME/.wiki/${CONFIG_FILE:-config.json}" + +if [ ! -f "$config_file" ]; then + cp initial-config/config.json "$config_file" fi -wiki --farm +wiki --farm --config "$config_file"