kiwix run.sh: exit if there's an error

This commit is contained in:
Starbeamrainbowlabs 2022-11-05 23:57:16 +00:00
parent bddaa05363
commit f9a2ff44f7
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ 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;
exit 1;
fi
echo ">>> Starting kiwix";