Blame tests/p_postgresql/1-config-postgresql.sh
|
Athmane Madjoudj |
e7a36a |
#!/bin/bash
|
|
Athmane Madjoudj |
e7a36a |
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
|
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
|
|
Athmane Madjoudj |
e7a36a |
service postgresql restart
|
|
Athmane Madjoudj |
093291 |
sleep 5
|
|
Athmane Madjoudj |
e7a36a |
else
|
|
Athmane Madjoudj |
e7a36a |
t_Log "This script is not required for CentOS 5.x"
|
|
Athmane Madjoudj |
e7a36a |
fi
|