{"action":"created","issue":{"url":"https://api.github.com/repos/Icinga/puppet-icingaweb2/issues/28","repository_url":"https://api.github.com/repos/Icinga/puppet-icingaweb2","labels_url":"https://api.github.com/repos/Icinga/puppet-icingaweb2/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/Icinga/puppet-icingaweb2/issues/28/comments","events_url":"https://api.github.com/repos/Icinga/puppet-icingaweb2/issues/28/events","html_url":"https://github.com/Icinga/puppet-icingaweb2/pull/28","id":132807062,"number":28,"title":"Change sql_schema_location if using git","user":{"login":"petems","id":1064715,"avatar_url":"https://avatars.githubusercontent.com/u/1064715?v=3","gravatar_id":"","url":"https://api.github.com/users/petems","html_url":"https://github.com/petems","followers_url":"https://api.github.com/users/petems/followers","following_url":"https://api.github.com/users/petems/following{/other_user}","gists_url":"https://api.github.com/users/petems/gists{/gist_id}","starred_url":"https://api.github.com/users/petems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petems/subscriptions","organizations_url":"https://api.github.com/users/petems/orgs","repos_url":"https://api.github.com/users/petems/repos","events_url":"https://api.github.com/users/petems/events{/privacy}","received_events_url":"https://api.github.com/users/petems/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-10T20:19:28Z","updated_at":"2016-02-10T20:19:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Icinga/puppet-icingaweb2/pulls/28","html_url":"https://github.com/Icinga/puppet-icingaweb2/pull/28","diff_url":"https://github.com/Icinga/puppet-icingaweb2/pull/28.diff","patch_url":"https://github.com/Icinga/puppet-icingaweb2/pull/28.patch"},"body":"The git clone does not create the docs folder, so this fails:\r\n\r\n```\r\n/Stage[main]/Icingaweb2::Initialize/Exec[create db scheme]/returns: sh: /usr/share/doc/icingaweb2/schema/mysql.schema.sql: No such file or directory\r\n==> default: Error: mysql --defaults-file='/root/.my.cnf' icingaweb2 < /usr/share/doc/icingaweb2/schema/mysql.schema.sql returned 1 instead of one of [0]\r\n```\r\n\r\nThis checks if the user is using the git installation method, then changes to the location of the correct schema."},"comment":{"url":"https://api.github.com/repos/Icinga/puppet-icingaweb2/issues/comments/182565220","html_url":"https://github.com/Icinga/puppet-icingaweb2/pull/28#issuecomment-182565220","issue_url":"https://api.github.com/repos/Icinga/puppet-icingaweb2/issues/28","id":182565220,"user":{"login":"petems","id":1064715,"avatar_url":"https://avatars.githubusercontent.com/u/1064715?v=3","gravatar_id":"","url":"https://api.github.com/users/petems","html_url":"https://github.com/petems","followers_url":"https://api.github.com/users/petems/followers","following_url":"https://api.github.com/users/petems/following{/other_user}","gists_url":"https://api.github.com/users/petems/gists{/gist_id}","starred_url":"https://api.github.com/users/petems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petems/subscriptions","organizations_url":"https://api.github.com/users/petems/orgs","repos_url":"https://api.github.com/users/petems/repos","events_url":"https://api.github.com/users/petems/events{/privacy}","received_events_url":"https://api.github.com/users/petems/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T20:19:57Z","updated_at":"2016-02-10T20:19:57Z","body":"I'll add a spec for this in a sec, don't merge yet! :smile: "}}