Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change sql_schema_location if using git #29

Merged
merged 1 commit into from
Feb 10, 2016

Commits on Feb 10, 2016

  1. Change sql_schema_location if using git

    The git clone does not create the docs folder, so this fails:
    
    ```
    /Stage[main]/Icingaweb2::Initialize/Exec[create db scheme]/returns: sh: /usr/share/doc/icingaweb2/schema/mysql.schema.sql: No such file or directory
    ==> default: Error: mysql --defaults-file='/root/.my.cnf' icingaweb2 < /usr/share/doc/icingaweb2/schema/mysql.schema.sql returned 1 instead of one of [0]
    ```
    
    This checks if the user is using the git installation method, then changes to the location of the correct schema.
    
    Also adds spec to check this logic
    petems committed Feb 10, 2016
    Configuration menu
    Copy the full SHA
    96211d8 View commit details
    Browse the repository at this point in the history