From 513431b7a36f3bb933bf854f4b433aed0fcebd82 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 25 Apr 2025 19:04:33 +1200 Subject: [PATCH] Fix allservicestatus --- templates/dropshell-agent/_allservicesstatus.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/dropshell-agent/_allservicesstatus.sh b/templates/dropshell-agent/_allservicesstatus.sh index a0c544a..6e5e51b 100644 --- a/templates/dropshell-agent/_allservicesstatus.sh +++ b/templates/dropshell-agent/_allservicesstatus.sh @@ -20,7 +20,7 @@ SCRIPT_DIR="$(dirname "$0")" # // |-- (script files) # Get all services on the server -SERVICES_PATH="${SCRIPT_DIR}/../" +SERVICES_PATH="${SCRIPT_DIR}/../../" # Get all service names SERVICE_NAMES=$(ls "${SERVICES_PATH}") @@ -44,8 +44,8 @@ for SERVICE_NAME in ${SERVICE_NAMES}; do # Get the service ports PORTS_FILE="${SERVICE_PATH}/template/ports.sh" if [ -f "${PORTS_FILE}" ]; then - # suppress all output from the ports script - SERVICE_PORTS=$(bash "${PORTS_FILE}" "${SERVICE_PATH}/config" > /dev/null 2>&1) + # capture output from the ports script + SERVICE_PORTS=$(bash "${PORTS_FILE}" "${SERVICE_PATH}/config" 2>&1) else SERVICE_PORTS="unknown" fi