Blob Blame History Raw
#!/bin/bash
# Author: Athmane Madjoudj <athmanem@gmail.com>

t_Log "Running $0 - initializing and starting PostgreSQL"

t_Log "Initialize PostgreSQL DB "
if (t_GetPkgRel postgresql | grep -q el8) then
   postgresql-setup --initdb
elif (t_GetPkgRel postgresql | grep -q el7) then
   postgresql-setup initdb
elif (t_GetPkgRel postgresql | grep -q el6) then
   service postgresql initdb
fi

t_ServiceControl postgresql start
sleep 15