From 85a1a0fb707c4d3afeaa9dfd38a1c52c0d6d3034 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 6 Nov 2022 03:30:23 +0000 Subject: [PATCH] kiwix: fixup --- images/kiwix/run.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/images/kiwix/run.sh b/images/kiwix/run.sh index 61c62ed..844f326 100755 --- a/images/kiwix/run.sh +++ b/images/kiwix/run.sh @@ -4,21 +4,21 @@ mode="$1"; shift; echo ">>> Environment:"; -echo "[wrapper] NOMAD_PORT_KIWIX=$NOMAD_PORT_KIWIX"; +echo "[wrapper] NOMAD_PORT_kiwix=$NOMAD_PORT_kiwix"; echo "[wrapper] Mode: ${mode}"; echo "[wrapper] Args: $*"; echo ">>> Checking environment"; -if [[ -z "${NOMAD_PORT_KIWIX}" ]]; then - echo "Error: The environment variable NOMAD_PORT_KIWIX is not set. It must be set to the port number to listen on." >&2; +if [[ -z "${NOMAD_PORT_kiwix}" ]]; then + echo "Error: The environment variable NOMAD_PORT_kiwix is not set. It must be set to the port number to listen on." >&2; exit 1; fi echo ">>> Starting kiwix"; case "${mode}" in serve ) - echo ">>> kiwix-serve --library --port ${NOMAD_PORT_KIWIX} /srv/data"; - /app/kiwix-serve --library --port "${NOMAD_PORT_KIWIX}" /srv/data; + echo ">>> kiwix-serve --library --port ${NOMAD_PORT_kiwix} /srv/data"; + /app/kiwix-serve --library --port "${NOMAD_PORT_kiwix}" /srv/data; ;; * ) echo ">>> kiwix-serve $*";