#!/bin/sh

# Payload here:
# m=$(ssh dbi@kut-download.tail 'docker exec bazarr [ "$(ls -A /mnt/unionfs)" ] && echo "OK" || echo "NOK" 2>&1')
# ssh dbi@kut-download.tail 'docker exec bazarr [ "$(ls -A /mnt/unionfs)" ]'

# ssh dbi@kat-download.tail '[ $(find /mnt/union_fs -maxdepth 1 -type d -ls | wc -l) -gt 1 ]' > /dev/null  2>&1
ssh dbi@kut-download.tail "docker exec bazarr [ 'find /mnt/unionfs -maxdepth 1 -type d | wc -l' > 1 ]"

curl -fsS -m 10 --retry 5 https://hc-ping.com/d4aa0fc4-d3e4-4205-85a8-ea5c7e59705f/$?
