Revision 8b07d735
Von Holger Lindemann vor fast 14 Jahren hinzugefügt
scripts/inst_postgres.sh | ||
---|---|---|
139 | 139 |
cat $PGHBA.org >> $PGHBA |
140 | 140 |
fi |
141 | 141 |
|
142 |
CONFDIR=`dirname $PGHBA` |
|
142 |
#CONFDIR=`dirname $PGHBA`
|
|
143 | 143 |
|
144 | 144 |
#postgresql.conf anpassen, liegt vermutlich im gleichen Verzeichnis wie pg_hba.conf |
145 |
if ! [ -f $CONFDIR/postgresql.conf ]; then |
|
146 |
#doch nicht da, dann fragen |
|
147 |
while :; do |
|
148 |
writeln 13 1 'postgresql.conf' nicht gefunden. |
|
149 |
tput bold |
|
150 |
writeln 14 1 "Bitte den Pfad eingeben: " |
|
151 |
tput rmso |
|
152 |
read PGCONF |
|
153 |
[ "$PGCONF#" != "#" ] && [ -f $PGCONF ] && break |
|
154 |
tput bel |
|
155 |
done |
|
156 |
CONFDIR=`dirname $PGCONF` |
|
157 |
fi |
|
158 |
|
|
159 |
mv $CONFDIR/postgresql.conf $CONFDIR/postgresql.conf.org |
|
145 |
#if ! [ -f $CONFDIR/postgresql.conf ]; then
|
|
146 |
# #doch nicht da, dann fragen
|
|
147 |
# while :; do
|
|
148 |
# writeln 13 1 'postgresql.conf' nicht gefunden.
|
|
149 |
# tput bold
|
|
150 |
# writeln 14 1 "Bitte den Pfad eingeben: "
|
|
151 |
# tput rmso
|
|
152 |
# read PGCONF
|
|
153 |
# [ "$PGCONF#" != "#" ] && [ -f $PGCONF ] && break
|
|
154 |
# tput bel
|
|
155 |
# done
|
|
156 |
# CONFDIR=`dirname $PGCONF`
|
|
157 |
#fi
|
|
158 |
|
|
159 |
#mv $CONFDIR/postgresql.conf $CONFDIR/postgresql.conf.org
|
|
160 | 160 |
#Bei der V8.x OID einschalten. |
161 |
sed 's/^.*default_with_oids.*/default_with_oids = true/i' $CONFDIR/postgresql.conf.org > $CONFDIR/postgresql.conf |
|
162 |
cnt=`grep default_with_oids $CONFDIR/postgresql.conf | wc -l` |
|
163 |
if [ $cnt -eq 0 ]; then |
|
164 |
cp $CONFDIR/postgresql.conf.org $CONFDIR/postgresql.conf |
|
165 |
echo "default_with_oids = true" >> $CONFDIR/postgresql.conf |
|
166 |
fi |
|
167 |
|
|
161 |
#sed 's/^.*default_with_oids.*/default_with_oids = true/i' $CONFDIR/postgresql.conf.org > $CONFDIR/postgresql.conf |
|
162 |
#cnt=`grep default_with_oids $CONFDIR/postgresql.conf | wc -l` |
|
163 |
#if [ $cnt -eq 0 ]; then |
|
164 |
# cp $CONFDIR/postgresql.conf.org $CONFDIR/postgresql.conf |
|
165 |
# echo "default_with_oids = true" >> $CONFDIR/postgresql.conf |
|
166 |
#fi |
|
168 | 167 |
|
169 | 168 |
tmp=`ls -r1 /etc/init.d/postgres*` |
170 | 169 |
PGSQL=`echo $tmp | cut -d " " -f 1` |
scripts/inst_postgres_deb.sh | ||
---|---|---|
98 | 98 |
cat $PGHBA.org >> $PGHBA |
99 | 99 |
fi |
100 | 100 |
|
101 |
CONFDIR=`dirname $PGHBA` |
|
101 |
#CONFDIR=`dirname $PGHBA`
|
|
102 | 102 |
|
103 | 103 |
#postgresql.conf anpassen, liegt vermutlich im gleichen Verzeichnis wie pg_hba.conf |
104 |
if ! [ -f $CONFDIR/postgresql.conf ]; then |
|
105 |
echo $FEHLER |
|
106 |
echo 'postgresql.conf' nicht gefunden. |
|
107 |
echo PostgreSQL selber konfigurieren |
|
108 |
ERRCNT=1 |
|
109 |
fi |
|
110 |
|
|
111 |
mv $CONFDIR/postgresql.conf $CONFDIR/postgresql.conf.org |
|
104 |
#if ! [ -f $CONFDIR/postgresql.conf ]; then
|
|
105 |
# echo $FEHLER
|
|
106 |
# echo 'postgresql.conf' nicht gefunden.
|
|
107 |
# echo PostgreSQL selber konfigurieren
|
|
108 |
# ERRCNT=1
|
|
109 |
#fi
|
|
110 |
|
|
111 |
#mv $CONFDIR/postgresql.conf $CONFDIR/postgresql.conf.org
|
|
112 | 112 |
#Bei der V8.x OID einschalten. |
113 |
sed 's/^.*default_with_oids.*/default_with_oids = true/i' $CONFDIR/postgresql.conf.org > $CONFDIR/postgresql.conf |
|
114 |
cnt=`grep default_with_oids $CONFDIR/postgresql.conf | wc -l` |
|
115 |
if [ $cnt -eq 0 ]; then |
|
116 |
cp $CONFDIR/postgresql.conf.org $CONFDIR/postgresql.conf |
|
117 |
echo "default_with_oids = true" >> $CONFDIR/postgresql.conf |
|
118 |
fi |
|
113 |
#sed 's/^.*default_with_oids.*/default_with_oids = true/i' $CONFDIR/postgresql.conf.org > $CONFDIR/postgresql.conf
|
|
114 |
#cnt=`grep default_with_oids $CONFDIR/postgresql.conf | wc -l`
|
|
115 |
#if [ $cnt -eq 0 ]; then
|
|
116 |
# cp $CONFDIR/postgresql.conf.org $CONFDIR/postgresql.conf
|
|
117 |
# echo "default_with_oids = true" >> $CONFDIR/postgresql.conf
|
|
118 |
#fi
|
|
119 | 119 |
|
120 | 120 |
|
121 | 121 |
PGSQL=`ls -r1 /etc/init.d/postgres* | head -1 -` |
Auch abrufbar als: Unified diff
"SET default_with_oids = true;" muß nicht mehr in der postgresql.conf geändert werden.