Skip to content
Snippets Groups Projects
Commit 8c1585fd authored by Fulvio Galeazzi's avatar Fulvio Galeazzi
Browse files

2018-11-30: FG; Touch gnocchi-api.log file.

parent 1faf3ed2
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,8 @@ def log_config(config):
gru = GnocchiCharm.group
uid = pwd.getpwnam(usr).pw_uid
gid = grp.getgrnam(gru).gr_gid
# touch file
open(log_config_file, 'a').close()
os.chown(log_config_file, uid, gid)
return log_config_file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment