Skip to content
Snippets Groups Projects
Verified Commit 38bf0fd5 authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

clean wowza logs older than 7 days

parent 19b14e77
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ def setup(interactive=True):
utils.run_commands(cmds)
# Write cron script to clean logs
with open('/etc/cron.daily/wowza-logs-cleaning', 'w') as fo:
fo.write('#!/bin/sh\nfind /usr/local/WowzaStreamingEngine/logs/ -type f -mtime +30 -exec rm -f {} \\;')
fo.write('#!/bin/sh\nfind /usr/local/WowzaStreamingEngine/logs/ -type f -mtime +7 -delete')
os.chmod('/etc/cron.daily/wowza-logs-cleaning', 0o755)
# Proxy for license key
path = '/usr/local/WowzaStreamingEngine/conf/Server.xml'
......
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