#!/bin/bash
set -o pipefail         
if multicat -d 8100000000 -uU @233.18.0.70:43000 /data/motv/stream_recordings//2022/01/26/mqukszsdie20220126122302233_18_0_70_43000_5min.ts; then
    cd /home/domains/motvmw/app/ApiModule/Model/../../../ && php app/bin/console stream-recording process 1 1
    exit 0;
fi;
cd /home/domains/motvmw/app/ApiModule/Model/../../../ && php app/bin/console stream-recording process 1 3
exit 1