forked from extern/docker
17 lines
272 B
Bash
Executable File
17 lines
272 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# How N days back to keep files
|
|
#
|
|
history=5
|
|
|
|
while :
|
|
do
|
|
# restart kurento after 24h
|
|
/bbb-restart-kms
|
|
|
|
# delete presentations older than N days
|
|
find /var/bigbluebutton/ -maxdepth 1 -type d -name "*-*" -mtime +$history -exec rm -rf '{}' +
|
|
|
|
sleep 10s
|
|
done |