forked from finn/tinyboard
health-check.sh: fix spoke detection to check for running autossh container instead of compose.yaml presence
This commit is contained in:
2
health-check.sh
Executable file → Normal file
2
health-check.sh
Executable file → Normal file
@@ -20,7 +20,7 @@ RCLONE_CONF="${HOME}/.config/rclone/rclone.conf"
|
|||||||
IS_SPOKE=false
|
IS_SPOKE=false
|
||||||
IS_HUB=false
|
IS_HUB=false
|
||||||
|
|
||||||
if docker ps --format '{{.Names}}' 2>/dev/null | grep -qi autossh || [ -f "$COMPOSE" ]; then
|
if docker ps --format '{{.Names}}' 2>/dev/null | grep -qi autossh; then
|
||||||
IS_SPOKE=true
|
IS_SPOKE=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user