X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=scripts%2Finst_postgres_deb.sh;h=b0cf9cfe6a8794b1460b0a1eba28d2146c184e45;hb=83542c806dc5c249bf640e344eaf3831cdf2f2ea;hp=49cddc7b6c7ac18700bcdbfeea51a4b11d84cf5f;hpb=89c9ff022d3f13e27ba6bda085df15707fcfb0eb;p=kivitendo-erp.git diff --git a/scripts/inst_postgres_deb.sh b/scripts/inst_postgres_deb.sh index 49cddc7b6..b0cf9cfe6 100755 --- a/scripts/inst_postgres_deb.sh +++ b/scripts/inst_postgres_deb.sh @@ -98,24 +98,24 @@ 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 - echo $FEHLER - echo 'postgresql.conf' nicht gefunden. - echo PostgreSQL selber konfigurieren - ERRCNT=1 -fi - -mv $CONFDIR/postgresql.conf $CONFDIR/postgresql.conf.org +#if ! [ -f $CONFDIR/postgresql.conf ]; then +# echo $FEHLER +# echo 'postgresql.conf' nicht gefunden. +# echo PostgreSQL selber konfigurieren +# ERRCNT=1 +#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 PGSQL=`ls -r1 /etc/init.d/postgres* | head -1 -`