bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone
Blob Blame History Raw
#!/bin/bash
# Author: Athmane Madjoudj <athmanem@gmail.com>
#	  Christoph Galuschka <christoph.galuschka@chello.at>

t_Log "Running $0 - initializing and starting PostgreSQL"

if (t_GetPkgRel postgresql | grep -q el6)
then
   t_Log "Initialize PostgreSQL DB "     
   service postgresql initdb
   t_ServiceControl postgresql start
   sleep 15
else
   t_ServiceControl postgresql start
   sleep 15
fi