This commit is contained in:
lulzette 2021-04-24 10:24:47 +03:00
parent 94509148bc
commit 4d2d7f6a0a

View File

@ -18,11 +18,11 @@ for i in $list; do
done
#Show status
echo "===="
echo
for i in $list; do
[[ -f $storage_path/$i/pid ]] && echo $i "is recording!" || echo $i "is not recording"
done
echo "===="
echo
echo "Removing old files (older than $ctime_remove days):"
find $storage_path/ -ctime +$ctime_remove -name "*mp4*"
find $storage_path/ -ctime +$ctime_remove -name "*mp4*" -exec rm {} \;