Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 34159c2

Browse files
committed
Fix initdb too
1 parent 70e39be commit 34159c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manifests/service.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
$service = $postgresql::params::service,
66
$enable = $postgresql::params::enable,
77

8+
$bindir = $postgresql::params::bindir,
89
$datadir = $postgresql::params::datadir,
910
$host = $postgresql::params::host,
1011
$port = $postgresql::params::port,
@@ -27,7 +28,7 @@
2728
}
2829

2930
exec { 'init-postgresql-db':
30-
command => "initdb -E UTF-8 ${datadir}",
31+
command => "${bindir}/initdb -E UTF-8 ${datadir}",
3132
creates => "${datadir}/PG_VERSION",
3233
}
3334

0 commit comments

Comments
 (0)