This commit is contained in:
Your Name
2025-05-03 19:36:33 +12:00
parent 5909c90941
commit 2fbe5307da
5 changed files with 27 additions and 21 deletions

View File

@ -10,4 +10,17 @@ source "$(dirname "$0")/_common.sh"
# Required environment variables
# check_required_env_vars "HOST_PORT"
echo $HOST_PORT
# check if jq is installed
if ! command -v jq &> /dev/null; then
die "jq could not be found, please install it"
fi
# check if sos_config.json exists
if [ ! -f "${CONFIG_PATH}/sos_config.json" ]; then
die "sos_config.json does not exist"
fi
# extract port from sos_config.json
PORT=$(jq -r '.port' "${CONFIG_PATH}/sos_config.json")
echo $PORT