diff debian/prerm @ 325:c36eb2596531 noffle

[svn] fixed inclusion of db_*
author godisch
date Sun, 23 Feb 2003 15:16:46 +0000
parents 5ec39beae9c5
children 56c3a43af1d5
line wrap: on
line diff
--- a/debian/prerm	Sat Feb 22 21:54:34 2003 +0000
+++ b/debian/prerm	Sun Feb 23 15:16:46 2003 +0000
@@ -1,7 +1,9 @@
 #!/bin/sh
-# $Id: prerm 459 2003-02-22 21:54:34Z godisch $
+# $Id: prerm 460 2003-02-23 15:16:46Z godisch $
 
 set -e
+. /usr/share/debconf/confmodule
+db_version 2.0
 
 if [ -x /usr/sbin/invoke-rc.d ]; then
 	invoke-rc.d noffle stop
@@ -10,13 +12,11 @@
 fi
 
 if [ -e /usr/share/debconf/confmodule ]; then
-	. /usr/share/debconf/confmodule
-	db_version 2.0
 	db_get noffle/port || RET=""
 	port="$RET"
 	[ -z "$port" -o "$port" = 119 ] && port=nntp
 	update-inetd --disable $port
-	db_stop
 fi
 
+db_stop
 exit 0