[Top][All Lists]

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

[Gforge-commits] gforge/deb-specific,,

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

Update of /cvsroot/gforge/gforge/deb-specific
In directory

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

RCS file: /cvsroot/gforge/gforge/deb-specific/,v
retrieving revision
retrieving revision
diff -u -d -r1.27.2.4 -r1.27.2.5
---       1 Apr 2004 10:05:27 -0000
+++       1 Apr 2004 12:14:42 -0000
@@ -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 password/" /etc/postgresql/pg_hba.conf.gforge-new
+               perl -pi -e "s/^host.*password$/host $db_name $db_user 
$ip_address password/ unless \$count++" 
                cur=$(mktemp /tmp/$pattern)
                echo "### Next line inserted by GForge install" > $cur

reply via email to

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