~hloeung/ubuntu-repository-cache/cache-memory-tuning-fix

« back to all changes in this revision

Viewing changes to lib/ubuntu_repository_cache/service.py

Fix permissions with apache2 logrotate config - LP:1835136

Show diffs side-by-side

added added

removed removed

Lines of Context:
260
260
                         'logrotate_dateext': config['logrotate_dateext'],
261
261
                         }
262
262
    templating.render('logrotate/logrotate.conf.template',
263
 
                      logrotate_filename, logrotate_context)
 
263
                      logrotate_filename, logrotate_context, perms=0o644)
264
264
 
265
265
    if not os.path.exists(CONFIG_DIR):
266
266
        host.mkdir(CONFIG_DIR)