diff options
Diffstat (limited to 'postgresql-tests/lib_pgsql.sh')
-rw-r--r-- | postgresql-tests/lib_pgsql.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/postgresql-tests/lib_pgsql.sh b/postgresql-tests/lib_pgsql.sh index 8d44391..e1fa3b0 100644 --- a/postgresql-tests/lib_pgsql.sh +++ b/postgresql-tests/lib_pgsql.sh @@ -160,6 +160,15 @@ dtf_postgresql_upgrade_tour() return $rv } +dtf_postgresql_initdb() +{ + if rlIsFedora 18 19 20 21 || rlIsRHEL 5 6 7; then + rlRun "postgresql-setup initdb" + else + rlRun "postgresql-setup --initdb" + fi +} + dtf_postgresql_data_mirror() { if test -z "$___mirror_chosen"; then |