{"action":"opened","issue":{"url":"https://api.github.com/repos/afklm/jira/issues/105","repository_url":"https://api.github.com/repos/afklm/jira","labels_url":"https://api.github.com/repos/afklm/jira/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/afklm/jira/issues/105/comments","events_url":"https://api.github.com/repos/afklm/jira/issues/105/events","html_url":"https://github.com/afklm/jira/issues/105","id":244748865,"number":105,"title":"Wrong owner and directory path at jira/recipes/standalone.rb","user":{"login":"cadalso","id":3931315,"avatar_url":"https://avatars3.githubusercontent.com/u/3931315?v=4","gravatar_id":"","url":"https://api.github.com/users/cadalso","html_url":"https://github.com/cadalso","followers_url":"https://api.github.com/users/cadalso/followers","following_url":"https://api.github.com/users/cadalso/following{/other_user}","gists_url":"https://api.github.com/users/cadalso/gists{/gist_id}","starred_url":"https://api.github.com/users/cadalso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cadalso/subscriptions","organizations_url":"https://api.github.com/users/cadalso/orgs","repos_url":"https://api.github.com/users/cadalso/repos","events_url":"https://api.github.com/users/cadalso/events{/privacy}","received_events_url":"https://api.github.com/users/cadalso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-21T18:31:22Z","updated_at":"2017-07-21T18:31:22Z","closed_at":null,"body":"At https://github.com/afklm/jira/blob/master/recipes/standalone.rb#L1 we have\r\n````\r\ndirectory File.dirname(node['jira']['home_path']) do\r\n  owner 'root'\r\n  group 'root'\r\n  mode 00755\r\n  action :create\r\n  recursive true\r\nend\r\n````\r\nUsing default attributes **File.dirname(node['jira']['home_path'])**  returns  **/var/atlassian/applicaition-data**, removing the **jira** directory from the path, because [File.dirname](https://ruby-doc.org/core-2.2.0/File.html#method-c-dirname) \r\n\r\n> Returns all components of the filename given in file_name **except the last one**. \r\n\r\nThe ower and group should be node['jira']['user'] and node['jira']['group'], not root.\r\n\r\nThat should be\r\n````\r\ndirectory (node['jira']['home_path']) do\r\n  owner node['jira']['user']\r\n  group node['jira']['group']\r\n  mode 00755\r\n  action :create\r\n  recursive true\r\nend\r\n````\r\n"}}
{"actor":{"display_login":"cadalso"}}