Skip to content
Snippets Groups Projects
Commit 535e5764 authored by Christoph Berg's avatar Christoph Berg :satellite:
Browse files

initscript: RedHat systems will have /etc/init.d/postgresql-* provided by the...

initscript: RedHat systems will have /etc/init.d/postgresql-* provided by the yum.pg.o package; don't skip versions which have a version-specific init script here.
parent 4b049c58
Branches
Tags
No related merge requests found
......@@ -92,12 +92,17 @@ status() {
# return all installed versions which do not have their own init script
get_versions() {
versions=''
local v dir
local v dir skipinit
skipinit=continue
#redhat# skipinit=true # RedHat systems will have /etc/init.d/postgresql-* provided by the yum.pg.o package
dir=$PGBINROOT
#redhat# dir="-d /usr/pgsql-*"
for v in `ls $dir 2>/dev/null`; do
#redhat# v=${v#*-}
if [ -x $PGBINROOT$v/bin/pg_ctl ] && [ ! -x /etc/init.d/postgresql-$v ]; then
[ -x /etc/init.d/postgresql-$v ] && $skipinit
if [ -x $PGBINROOT$v/bin/pg_ctl ]; then
versions="$versions $v"
fi
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment