This commit is contained in:
lulzette 2021-04-24 10:20:55 +03:00
parent 3c7cc07dcd
commit 94509148bc

View File

@ -23,7 +23,7 @@ for i in $list; do
[[ -f $storage_path/$i/pid ]] && echo $i "is recording!" || echo $i "is not recording" [[ -f $storage_path/$i/pid ]] && echo $i "is recording!" || echo $i "is not recording"
done done
echo "====" echo "===="
echo "Removing old files (older than $ctime_remove days)" 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*"
find $storage_path/ -ctime +$ctime_remove -name "*mp4*" -exec rm {} \; find $storage_path/ -ctime +$ctime_remove -name "*mp4*" -exec rm {} \;
echo "Done" echo "Done"