~cprov/charms/trusty/tanuki-spec-manager/cron-logfile-perms

« back to all changes in this revision

Viewing changes to hooks/actions.py

  • Committer: Celso Providelo
  • Date: 2015-09-17 05:20:25 UTC
  • Revision ID: celso.providelo@canonical.com-20150917052025-1r841l78npueqmpp
Fix logfile perms

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
        log_path = os.path.join(LOG_DIR, 'store-poller.log')
332
332
        # Create the file now, so the nagios check doesn't fail right after
333
333
        # we've completed the deployment.
334
 
        host.write_file(log_path,"", "www-data", "www-data")
 
334
        host.write_file(log_path,"", "www-data", "www-data", perms=0o660)
335
335
        max_age_seconds = int(config['store_poller_nagios_file_age_max_minutes']) * 60
336
336
        nrpe_compat.add_check(
337
337
            shortname="store_poller_check",