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.27.2.4, 1.27.2.5


From: lo-lan-do
Subject: [Gforge-commits] gforge/deb-specific install-db.sh, 1.27.2.4, 1.27.2.5
Date: Thu, 01 Apr 2004 06:14:44 -0600

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

Modified Files:
      Tag: Branch_3_1
        install-db.sh 
Log Message:
Fixed install-db.sh, which would blindly overwrite lines in
pg_hba.conf which it wasn't entitled to overwrite.


Index: install-db.sh
===================================================================
RCS file: /cvsroot/gforge/gforge/deb-specific/install-db.sh,v
retrieving revision 1.27.2.4
retrieving revision 1.27.2.5
diff -u -d -r1.27.2.4 -r1.27.2.5
--- install-db.sh       1 Apr 2004 10:05:27 -0000       1.27.2.4
+++ install-db.sh       1 Apr 2004 12:14:42 -0000       1.27.2.5
@@ -63,7 +63,7 @@
             # the below could cause issues if gforge's line isnt at the top of 
the file, but its
            # the only way to allow changing of the db_name.
            elif grep -q "^host.*password$" 
/etc/postgresql/pg_hba.conf.gforge-new ; then
-               perl -pi -e "s/^host.*password$/host $db_name $db_user 
$ip_address 255.255.255.255 password/" /etc/postgresql/pg_hba.conf.gforge-new
+               perl -pi -e "s/^host.*password$/host $db_name $db_user 
$ip_address 255.255.255.255 password/ unless \$count++" 
/etc/postgresql/pg_hba.conf.gforge-new
            else
                cur=$(mktemp /tmp/$pattern)
                echo "### Next line inserted by GForge install" > $cur





reply via email to

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