Univention Bugzilla – Bug 53701
Make logrotate maxsize use- and configurable via UCR
Last modified: 2021-08-24 13:02:42 CEST
In /usr/lib/python2.7/dist-packages/univention/lib/ucrLogrotate.py there is no code that would extract maxsize and the extraction of the ucr vars are hardcoded. If I remember right we are working on generic extraction of given vars? Anyways I tried to add maxsize if configRegistry.get(var + "create"): settings["create"] = "create " + configRegistry[var + "create"] #added maxsize for testing if configRegistry.get(var + "maxsize"): settings["maxsize"] = "maxsize " + configRegistry[var + "maxsize"] _getBoolDefault("logrotate/missingok", "logrotate/" + name + "/missingok", settings, configRegistry) and the logrotate configfiles were filled with that option. I support the customer request in the attached ticket to empower logrotate.