kiwix run.sh: exit if there's an error
This commit is contained in:
parent
bddaa05363
commit
f9a2ff44f7
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ 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;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ">>> Starting kiwix";
|
echo ">>> Starting kiwix";
|
||||||
|
|
Loading…
Reference in a new issue