X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=scripts%2Finst_postgres.sh;h=6d07e599aba2e0efb11f90d65830ef379da7756f;hb=9d218dc8b07ff4f9be9589cb3246e50653e2b6e2;hp=db7b3129e7826119b3171dcdbd380460f8f03743;hpb=d18df453f55190d4807af324725ea82a8835d7fc;p=kivitendo-erp.git diff --git a/scripts/inst_postgres.sh b/scripts/inst_postgres.sh index db7b3129e..6d07e599a 100755 --- a/scripts/inst_postgres.sh +++ b/scripts/inst_postgres.sh @@ -27,7 +27,7 @@ if [ "$POSTGRESQL#" == "#" ]; then writeln 3 1 Datenbank bitte manuell einrichten. exit 0 else - PLPGSQL=`dpkg -L postgresql-8.3 | grep plpgsql.so` + PLPGSQL=`dpkg -L $POSTGRESQL | grep plpgsql.so` fi #Mit Paketmanager (RPM) suchen ? @@ -139,32 +139,31 @@ if [ $cnt -eq 0 ]; then cat $PGHBA.org >> $PGHBA fi -CONFDIR=`dirname $PGHBA` +#CONFDIR=`dirname $PGHBA` #postgresql.conf anpassen, liegt vermutlich im gleichen Verzeichnis wie pg_hba.conf -if ! [ -f $CONFDIR/postgresql.conf ]; then - #doch nicht da, dann fragen - while :; do - writeln 13 1 'postgresql.conf' nicht gefunden. - tput bold - writeln 14 1 "Bitte den Pfad eingeben: " - tput rmso - read PGCONF - [ "$PGCONF#" != "#" ] && [ -f $PGCONF ] && break - tput bel - done - CONFDIR=`dirname $PGCONF` -fi - -mv $CONFDIR/postgresql.conf $CONFDIR/postgresql.conf.org +#if ! [ -f $CONFDIR/postgresql.conf ]; then +# #doch nicht da, dann fragen +# while :; do +# writeln 13 1 'postgresql.conf' nicht gefunden. +# tput bold +# writeln 14 1 "Bitte den Pfad eingeben: " +# tput rmso +# read PGCONF +# [ "$PGCONF#" != "#" ] && [ -f $PGCONF ] && break +# tput bel +# done +# CONFDIR=`dirname $PGCONF` +#fi + +#mv $CONFDIR/postgresql.conf $CONFDIR/postgresql.conf.org #Bei der V8.x OID einschalten. -sed 's/^.*default_with_oids.*/default_with_oids = true/i' $CONFDIR/postgresql.conf.org > $CONFDIR/postgresql.conf -cnt=`grep default_with_oids $CONFDIR/postgresql.conf | wc -l` -if [ $cnt -eq 0 ]; then - cp $CONFDIR/postgresql.conf.org $CONFDIR/postgresql.conf - echo "default_with_oids = true" >> $CONFDIR/postgresql.conf -fi - +#sed 's/^.*default_with_oids.*/default_with_oids = true/i' $CONFDIR/postgresql.conf.org > $CONFDIR/postgresql.conf +#cnt=`grep default_with_oids $CONFDIR/postgresql.conf | wc -l` +#if [ $cnt -eq 0 ]; then +# cp $CONFDIR/postgresql.conf.org $CONFDIR/postgresql.conf +# echo "default_with_oids = true" >> $CONFDIR/postgresql.conf +#fi tmp=`ls -r1 /etc/init.d/postgres*` PGSQL=`echo $tmp | cut -d " " -f 1`