Skip to content

Commit

Permalink
Adjust entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
upbqdn committed Oct 11, 2024
1 parent 6932d9a commit cdc54ba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -362,12 +362,12 @@ case "$1" in

prepare_env_vars

if [[ ! -f "${ZEBRA_CONF_PATH}" ]] && [[ -d "${ZEBRA_CONF_DIR}" ]]; then
ZEBRA_CONF_PATH="${ZEBRA_CONF_DIR}/zebrad.toml"
prepare_default_conf_file "$ZEBRA_CONF_PATH"
fi
# if [[ ! -f "${ZEBRA_CONF_PATH}" ]] && [[ -d "${ZEBRA_CONF_DIR}" ]]; then
# ZEBRA_CONF_PATH="${ZEBRA_CONF_DIR}/zebrad.toml"
# prepare_default_conf_file "$ZEBRA_CONF_PATH"
# fi

if [[ -f "${ZEBRA_CONF_PATH}" ]]; then
if [[ "${ZEBRA_CONF_PATH}" ]]; then
exec zebrad -c "${ZEBRA_CONF_PATH}" "$@"
else
exec zebrad "$@"
Expand Down

0 comments on commit cdc54ba

Please sign in to comment.