Add support for specifying config file location
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
61e96089f1
commit
2ac052366a
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user