bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_postgresql/1-config-postgresql.sh

Athmane Madjoudj e7a36a
#!/bin/bash
Athmane Madjoudj e7a36a
# Author: Athmane Madjoudj <athmanem@gmail.com>
Christoph Galuschka 6461f0
#	  Christoph Galuschka <christoph.galuschka@chello.at>
Christoph Galuschka 6461f0
Christoph Galuschka 6461f0
t_Log "Running $0 - initializing and starting PostgreSQL"
Athmane Madjoudj e7a36a
Athmane Madjoudj e7a36a
if (t_GetPkgRel postgresql | grep -q el6)
Athmane Madjoudj e7a36a
then
Athmane Madjoudj e7a36a
   t_Log "Initialize PostgreSQL DB "     
Athmane Madjoudj e7a36a
   service postgresql initdb
cf2816
   t_ServiceControl postgresql start
cf2816
   sleep 15
Athmane Madjoudj e7a36a
else
cf2816
   t_ServiceControl postgresql start
cf2816
   sleep 15
Athmane Madjoudj e7a36a
fi