asd
This commit is contained in:
parent
3c7cc07dcd
commit
94509148bc
2
cron.sh
2
cron.sh
@ -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"
|
Loading…
Reference in New Issue
Block a user