{"action":"opened","issue":{"url":"https://api.github.com/repos/CanonicalLtd/jujucharms.com/issues/194","labels_url":"https://api.github.com/repos/CanonicalLtd/jujucharms.com/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/CanonicalLtd/jujucharms.com/issues/194/comments","events_url":"https://api.github.com/repos/CanonicalLtd/jujucharms.com/issues/194/events","html_url":"https://github.com/CanonicalLtd/jujucharms.com/issues/194","id":125644431,"number":194,"title":"authors-charm-writing conf.php mode","user":{"login":"macgreagoir","id":5586350,"avatar_url":"https://avatars.githubusercontent.com/u/5586350?v=3","gravatar_id":"","url":"https://api.github.com/users/macgreagoir","html_url":"https://github.com/macgreagoir","followers_url":"https://api.github.com/users/macgreagoir/followers","following_url":"https://api.github.com/users/macgreagoir/following{/other_user}","gists_url":"https://api.github.com/users/macgreagoir/gists{/gist_id}","starred_url":"https://api.github.com/users/macgreagoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macgreagoir/subscriptions","organizations_url":"https://api.github.com/users/macgreagoir/orgs","repos_url":"https://api.github.com/users/macgreagoir/repos","events_url":"https://api.github.com/users/macgreagoir/events{/privacy}","received_events_url":"https://api.github.com/users/macgreagoir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-08T16:31:18Z","updated_at":"2016-01-08T16:31:18Z","closed_at":null,"body":"In the https://jujucharms.com/docs/devel/authors-charm-writing install hook example, /var/www/vanilla/conf/ mode is recursively changed to 777, so that the apache user has full access. For a new installation, in this example, /var/www/vanilla/conf/config.php is not present until the database-relation-changed hook writes it, leaving the new file's mode 0644 (for root:root).\r\n\r\nPerhaps the config.php file could be touch-ed in an else clause to the config.php cp block, or the file's mode changed (again) in the database-relation-changed hook."}}