gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge/deb-specific install-db.sh,1.29,1.30


From: cbayle
Subject: [Gforge-commits] gforge/deb-specific install-db.sh,1.29,1.30
Date: Tue, 20 Jan 2004 17:49:30 -0600

Update of /cvsroot/gforge/gforge/deb-specific
In directory db.perdue.net:/tmp/cvs-serv10490/deb-specific

Modified Files:
        install-db.sh 
Log Message:
Added a test to see if db_host = localhost and take according measures for
pg_hba.conf


Index: install-db.sh
===================================================================
RCS file: /cvsroot/gforge/gforge/deb-specific/install-db.sh,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- install-db.sh       10 Jan 2004 22:14:05 -0000      1.29
+++ install-db.sh       20 Jan 2004 23:49:28 -0000      1.30
@@ -30,8 +30,15 @@
        ip_address=$(grep ^ip_address= /etc/gforge/gforge.conf | cut -d= -f2-)
        db_name=$(grep ^db_name= /etc/gforge/gforge.conf | cut -d= -f2-)
        db_user=$(grep ^db_user= /etc/gforge/gforge.conf | cut -d= -f2-)
+       db_host=$(grep ^db_host= /etc/gforge/gforge.conf | cut -d= -f2-)
        pattern=$(basename $0).XXXXXX
        pg_version=$(dpkg -s postgresql | awk '/^Version: / { print $2 }')
+       if [ "$db_host" == "127.0.0.1" -o "$db_host" == "localhost" ]
+       then
+               # Otherwise the line wouldn't be used
+               # And postgres auth would fail
+               ip_address=127.0.0.1
+       fi
        if dpkg --compare-versions $pg_version lt 7.3 ; then
             # PostgreSQL configuration for versions prior to 7.3
            echo "Configuring for PostgreSQL 7.2"





reply via email to

[Prev in Thread] Current Thread [Next in Thread]