Replace the hard-coded path for the SQL schema file with the variable from params.pp.
This commit is contained in:
parent
4fa10d3d32
commit
87318a1722
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ class icinga2::server::install::execs inherits icinga2::server {
|
|||
exec { 'postgres_schema_load':
|
||||
user => 'root',
|
||||
path => '/usr/bin:/usr/sbin:/bin/:/sbin',
|
||||
command => "su postgres -c 'psql -d ${db_name} < /usr/share/icinga2-ido-pgsql/schema/pgsql.sql'; touch /etc/icinga2/postgres_schema_loaded.txt",
|
||||
command => "su postgres -c 'psql -d ${db_name} < ${server_db_schema_path}'; touch /etc/icinga2/postgres_schema_loaded.txt",
|
||||
creates => "/etc/icinga2/postgres_schema_loaded.txt",
|
||||
require => Class['icinga2::server::install::packages'],
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue