[Dbconfig-common-changes] [dbconfig-common] r211 - in trunk: debian dpkg

Sean Finney seanius at costa.debian.org
Thu May 11 06:59:41 UTC 2006


Author: seanius
Date: 2006-05-11 06:59:40 +0000 (Thu, 11 May 2006)
New Revision: 211

Modified:
   trunk/debian/changelog
   trunk/dpkg/prerm
Log:
fix for wrong grant host in prerm, similar to previous one in postinst


Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2006-05-11 06:56:02 UTC (rev 210)
+++ trunk/debian/changelog	2006-05-11 06:59:40 UTC (rev 211)
@@ -4,6 +4,8 @@
   * now support a dbc_pgsql_createdb_encoding hint option in the postinst
     for supporting specific encodings (closes: #366758).
   * updated czech translation from Miroslav Kure (closes: #366261).
+  * a third fix for GRANT command construction hiding in the prerm
+    support script.  thanks again to Radu (closes: #362571).
 
  -- sean finney <seanius at debian.org>  Thu, 11 May 2006 08:53:37 +0200
 

Modified: trunk/dpkg/prerm
===================================================================
--- trunk/dpkg/prerm	2006-05-11 06:56:02 UTC (rev 210)
+++ trunk/dpkg/prerm	2006-05-11 06:59:40 UTC (rev 211)
@@ -58,12 +58,12 @@
 		###
 
 		# if dbserver is unset, that means localhost.  
-		if [ -z "$dbc_dbserver" ]; then 
+		if [ -z "$dbc_dbserver" ] || [ "$dbc_dbserver" = "localhost" ]; then 
 			# if the server is local, only allow connections from localhost
 			dbc_dballow="localhost"
 		else
 			# otherwise, only tell the remote database to allow from us
-			dbc_dballow=`hostname`
+			dbc_dballow=`hostname -f`
 		fi
 		
 		###




More information about the Dbconfig-common-changes mailing list