Skip to content
Snippets Groups Projects
Commit 9bf81710 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Added cron to clean Wowza logs (refs #27271).

parent 9169af74
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,10 @@ def setup(interactive=True):
'ln -sfn /home/ftp/storage/www /usr/local/WowzaStreamingEngine/content',
])
utils.run_commands(cmds)
# Write cron script to clean logs
with open('/etc/cron.daily/wowza-logs-cleaning', 'w') as fo:
fo.write('find /usr/local/WowzaStreamingEngine/logs/ -type f -mtime +30 -exec rm -f {} \\;')
os.chmod('/etc/cron.daily/wowza-logs-cleaning', 0o755)
# Proxy for license key
path = '/usr/local/WowzaStreamingEngine/conf/Server.xml'
with open(path, 'r') as fo:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment