Project

General

Profile

Bug #2305 » rudder-reports-fix-psql.patch

Olivier LI KIANG CHEONG, 2012-02-20 15:25

View differences:

rudder-reports.spec 2012-02-03 10:05:56.825670593 +0100
echo "Setting postgresql as a boot service"
/sbin/chkconfig --add postgresql
%if 0%{?el6}
/sbin/chkconfig postgresql on
/sbin/service postgresql initdb
/sbin/service postgresql start
%endif
dbname="rudder"
usrname="rudder"
RES=$(su - postgres -c "psql -t -c \"select count(1) from pg_catalog.pg_database where datname = '$dbname'\"")
(1-1/2)