Schema path is now always /usr/share/icingaweb2/schema
This commit is contained in:
parent
7c9e0ab91e
commit
d41ebeb6bc
|
@ -183,7 +183,7 @@ CREATE DATABASE icingaweb2;
|
|||
GRANT SELECT, INSERT, UPDATE, DELETE, DROP, CREATE VIEW, INDEX, EXECUTE ON icingaweb2.* TO 'icingaweb2'@'localhost' IDENTIFIED BY 'icingaweb2';
|
||||
quit
|
||||
|
||||
mysql -p icingaweb2 < /usr/share/doc/icingaweb2/schema/mysql.schema.sql
|
||||
mysql -p icingaweb2 < /usr/share/icingaweb2/schema/mysql.schema.sql
|
||||
```
|
||||
|
||||
|
||||
|
@ -318,7 +318,7 @@ and all the other steps described above first.
|
|||
1. Install PHP dependencies: `php`, `php-intl`, `php-imagick`, `php-gd`, `php-mysql`, `php-curl`, `php-mbstring` used
|
||||
by Icinga Web 2.
|
||||
2. Create a database for Icinga Web 2, i.e. `icingaweb2`.
|
||||
3. Import the database schema: `mysql -D icingaweb2 < /usr/share/icingaweb2/etc/schema/mysql.schema.sql`.
|
||||
3. Import the database schema: `mysql -D icingaweb2 < /usr/share/icingaweb2/schema/mysql.schema.sql`.
|
||||
4. Insert administrator user in the `icingaweb2` database:
|
||||
`INSERT INTO icingaweb_user (name, active, password_hash) VALUES ('admin', 1, '<hash>')`, where `<hash>` is the output
|
||||
of `php -r 'echo password_hash("yourtopsecretpassword", PASSWORD_DEFAULT);'`.
|
||||
|
|
|
@ -13,8 +13,9 @@ v2.6 to v2.8 requires to follow the instructions for v2.7 too.
|
|||
**Database Schema**
|
||||
|
||||
* Please apply the `v2.11.0.sql` upgrade script depending on your database vendor.
|
||||
In package installations this file can be found in `/usr/share/doc/icingaweb2/schema/*-upgrades/`
|
||||
(Debian/Ubuntu: `/usr/share/icingaweb2/etc/schema/*-upgrades/`).
|
||||
As of version `2.11.4`, upgrade scripts can be found at `/usr/share/icingaweb2/schema/*-upgrades/`.
|
||||
Older versions install these files to `/usr/share/doc/icingaweb2/schema/*-upgrades/` for RPM-based systems
|
||||
and `/usr/share/icingaweb2/etc/schema/*-upgrades/` for Debian or Ubuntu.
|
||||
|
||||
**Breaking changes**
|
||||
|
||||
|
|
|
@ -445,7 +445,7 @@ class WebWizard extends Wizard implements SetupWizard
|
|||
? $pageData['setup_auth_db_creation']['password']
|
||||
: null,
|
||||
'schemaPath' => Config::module('setup')
|
||||
->get('schema', 'path', Icinga::app()->getBaseDir('etc' . DIRECTORY_SEPARATOR . 'schema'))
|
||||
->get('schema', 'path', Icinga::app()->getBaseDir('schema'))
|
||||
))
|
||||
);
|
||||
} elseif (isset($pageData['setup_config_db_resource'])
|
||||
|
@ -466,7 +466,7 @@ class WebWizard extends Wizard implements SetupWizard
|
|||
? $pageData['setup_config_db_creation']['password']
|
||||
: null,
|
||||
'schemaPath' => Config::module('setup')
|
||||
->get('schema', 'path', Icinga::app()->getBaseDir('etc' . DIRECTORY_SEPARATOR . 'schema'))
|
||||
->get('schema', 'path', Icinga::app()->getBaseDir('schema'))
|
||||
))
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue