kiwix: fixup
This commit is contained in:
parent
f9a2ff44f7
commit
85a1a0fb70
1 changed files with 5 additions and 5 deletions
|
@ -4,21 +4,21 @@ mode="$1";
|
||||||
shift;
|
shift;
|
||||||
|
|
||||||
echo ">>> Environment:";
|
echo ">>> Environment:";
|
||||||
echo "[wrapper] NOMAD_PORT_KIWIX=$NOMAD_PORT_KIWIX";
|
echo "[wrapper] NOMAD_PORT_kiwix=$NOMAD_PORT_kiwix";
|
||||||
echo "[wrapper] Mode: ${mode}";
|
echo "[wrapper] Mode: ${mode}";
|
||||||
echo "[wrapper] Args: $*";
|
echo "[wrapper] Args: $*";
|
||||||
|
|
||||||
echo ">>> Checking environment";
|
echo ">>> Checking environment";
|
||||||
if [[ -z "${NOMAD_PORT_KIWIX}" ]]; then
|
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;
|
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;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ">>> Starting kiwix";
|
echo ">>> Starting kiwix";
|
||||||
case "${mode}" in
|
case "${mode}" in
|
||||||
serve )
|
serve )
|
||||||
echo ">>> 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;
|
/app/kiwix-serve --library --port "${NOMAD_PORT_kiwix}" /srv/data;
|
||||||
;;
|
;;
|
||||||
* )
|
* )
|
||||||
echo ">>> kiwix-serve $*";
|
echo ">>> kiwix-serve $*";
|
||||||
|
|
Loading…
Reference in a new issue