From f6ee1d04660fb63697f8c3460837043a789590ab Mon Sep 17 00:00:00 2001 From: StarOpenSource Date: Mon, 21 Aug 2023 17:00:09 +0200 Subject: [PATCH] Fix uptimekuma displaying as offline (migration) --- soscmd-stats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soscmd-stats b/soscmd-stats index 781cb72..a17dcd0 100755 --- a/soscmd-stats +++ b/soscmd-stats @@ -85,7 +85,7 @@ export "SERVICES_WINGS=$(ps -eo args|grep wings|grep '/usr/local/bin'&>/dev/null if [ "$VERBOSE" ]; then echo -e "${LINEREP}${COLOR_PURPLE}:: Computing running services: pteroq${LINESPACE}"; fi export "SERVICES_PTEROQ=$(ps -eo args|grep 'artisan queue:work'|grep php&>/dev/null;echo $?)" if [ "$VERBOSE" ]; then echo -e "${LINEREP}${COLOR_PURPLE}:: Computing running services: Uptime Kuma{LINESPACE}"; fi -export "SERVICES_UPTIMEKUMA=$(docker ps|grep uptime-kuma&>/dev/null;echo $?)" +export "SERVICES_UPTIMEKUMA=$(ps -eo args|grep 'node'|grep '/opt/uptimekuma/server/server.js'&>/dev/null;echo $?)" if [ "$VERBOSE" ]; then echo -e "${LINEREP}${COLOR_PURPLE}:: Computing running services: Adminer${LINESPACE}"; fi export "SERVICES_ADMINER=$(docker ps|grep adminer&>/dev/null;echo $?)" if [ "$VERBOSE" ]; then echo -e "${LINEREP}${COLOR_PURPLE}:: Computing running services: PostgreSQL${LINESPACE}"; fi