#!/bin/sh

# Payload here:
# m=$(ssh dbi@kut-download.tail 'docker exec bazarr [ "$(ls -A /mnt/unionfs)" ] && echo "OK" || echo "NOK" 2>&1')
# RETCODE=$(ssh dbi@kat-plex.tail '[ $(find /mnt/move -maxdepth 2 -type d -ls | wc -l) -gt 1 ]  && 0 || 1')

#[[ $(findmnt -M "/mnt/move") ]] && echo "OK" || echo "NOK"

# ssh dbi@kat-plex.tail '[ $(find /mnt/union_media -maxdepth 2 -type d -ls | wc -l) -gt 1 ]' > /dev/null  2>&1

ssh dbi@kat-plex.tail 'mountpoint -q /mnt/union_media' > /dev/null  2>&1

curl -fsS -m 10 --retry 5 https://hc-ping.com/8704da64-a490-4097-b5a7-900faa49d30b/$?
