Commit graph

5 commits

Author SHA1 Message Date
Khanh Ngo
475e0c9cfc Add extra clause for Debian/Ubuntu in db initialization step 2016-04-18 17:29:43 +02:00
Khanh Ngo
41c46bdf02 Switch initialize to true in icingaweb2 setup 2016-04-18 17:28:33 +02:00
Peter Souter
96211d89d1 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
2016-02-10 20:47:13 +00:00
Jan Collijs
0cc89ec9fd Bugfix: only create db scheme once when tables are not yet deployed 2016-01-04 15:05:38 +01:00
Jan Collijs
df99507221 Feature: initialize database if preferred so a working icingaweb2 instance can be started automatically 2015-12-14 16:40:11 +01:00