Blame tests/p_postgresql/postgresql_create_db.sh

Athmane Madjoudj 9696f6
#!/bin/sh
Athmane Madjoudj 9696f6
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 9696f6
Athmane Madjoudj 9696f6
t_Log "Running $0 - PostgreSQL create database test"
f49232
if (t_GetPkgRel basesystem | grep -q el9)
f49232
then
f49232
  t_Log "This is a C9 system. Postgres needs to be initialized."
f49232
  /usr/bin/postgresql-setup --initdb
f49232
fi
f49232
f49232
su - postgres -c 'createdb pg_testdb'
Athmane Madjoudj 9696f6
t_CheckExitStatus $?