* Alexander Reichle-Schmehl <alexan...@schmehl.info> [101011 14:15]:

> > Please find attached a quick fix for the installation problem.
> Now really attached.

Not my day... Attached is a version correctly cleaning the tmpfile up.


Best Regards,
  Alexander
diff -u nagvis-1.4.6/debian/config nagvis-1.4.6/debian/config
--- nagvis-1.4.6/debian/config
+++ nagvis-1.4.6/debian/config
@@ -6,13 +6,16 @@
 tmp=`mktemp`
-dbconfig-load-include -f sh \
-	-udbc_dbuser -pdbc_dbpass -ddbc_dbname -sdbc_dbserver -Pdbc_dbport \
-	/etc/dbconfig-common/ndoutils-mysql.conf > $tmp
-. $tmp
-rm -f $tmp
 
-if [ -f /usr/share/dbconfig-common/dpkg/frontend.config.mysql ]; then
-	. /usr/share/dbconfig-common/dpkg/frontend.config.mysql
-	dbc_go nagvis $@
+if [ -f /etc/dbconfig-common/ndoutils-mysql.conf ] ; then
+	dbconfig-load-include -f sh \
+		-udbc_dbuser -pdbc_dbpass -ddbc_dbname -sdbc_dbserver -Pdbc_dbport \
+		/etc/dbconfig-common/ndoutils-mysql.conf > $tmp
+	. $tmp
+	if [ -f /usr/share/dbconfig-common/dpkg/frontend.config.mysql ]; then
+		. /usr/share/dbconfig-common/dpkg/frontend.config.mysql
+		dbc_go nagvis $@
+	fi
+	db_stop
 fi
-db_stop
+
+rm -f $tmp
 
diff -u nagvis-1.4.6/debian/changelog nagvis-1.4.6/debian/changelog
--- nagvis-1.4.6/debian/changelog
+++ nagvis-1.4.6/debian/changelog
@@ -1,3 +1,11 @@
+nagvis (1:1.4.6-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Only try to configure local database, if ndoutils is run localy
+    (Closes: #595313)
+
+ -- Alexander Reichle-Schmehl <toli...@debian.org>  Mon, 11 Oct 2010 13:55:28 +0200
+
 nagvis (1:1.4.6-1) unstable; urgency=low
 
   [ Hendrik Frenzel ]

Attachment: signature.asc
Description: Digital signature

Reply via email to