diff --git a/2.Common_services/4.Wowza/0_setup.py b/2.Common_services/4.Wowza/0_setup.py index ad5538f21b0a8ef9ae3e85f3b2c7891c0d48b70b..66cc120a79b4c4a7e9eb1cba1797290881a04050 100644 --- a/2.Common_services/4.Wowza/0_setup.py +++ b/2.Common_services/4.Wowza/0_setup.py @@ -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'