336
335
# If `store-poller` cronscript is enabled in this unit, ensure the log file
338
337
config_unit = config.get('store_poller_unit')
339
338
local_unit = int(hookenv.local_unit().split('/')[-1])
340
339
if local_unit == config_unit:
341
host.write_file(log_path,"", "www-data", "www-data", perms=0o660)
340
host.write_file(log_path, "", "www-data", "www-data", perms=0o660)
343
347
check_cmd = "negate {}".format(check_cmd)