Patch for Debian client install errors

wens at csie.org wens at csie.org
Tue Oct 31 17:00:46 CET 2006


Hi,

I have had some problems with installing the hobbitmon package on
debian, the problem being the configuration file is not properly set.

I have fixed it, and would like to submit the following patch.

---------------start of patch----------------
diff -ur hobbit-4.2.0/debian/hobbit-client.postinst hobbit-4.2.0-patched/debian/hobbit-client.postinst
--- hobbit-4.2.0/debian/hobbit-client.postinst	2006-08-10 04:10:17.000000000 +0800
+++ hobbit-4.2.0-patched/debian/hobbit-client.postinst	2006-10-07 18:11:48.000000000 +0800
@@ -36,8 +36,8 @@
 	db_stop
 
         # Update configuration file
-	sed -e 's/^HOBBITSERVERS=.*/HOBBITSERVERS=\"${HOBBITSERVERS}\"/'	\
-	    -e 's/^CLIENTHOSTNAME=.*/CLIENTHOSTNAME=\"${CLIENTHOSTNAME}\"/'	\
+	sed -e "s/^HOBBITSERVERS=.*/HOBBITSERVERS=\"${HOBBITSERVERS}\"/"	\
+	    -e "s/^CLIENTHOSTNAME=.*/CLIENTHOSTNAME=\"${CLIENTHOSTNAME}\"/"	\
 	    < $CONFIGFILE > $CONFIGFILE.tmp
 	mv -f $CONFIGFILE.tmp $CONFIGFILE
     ;;
diff -ur hobbit-4.2.0/debian/hobbit.postinst hobbit-4.2.0-patched/debian/hobbit.postinst
--- hobbit-4.2.0/debian/hobbit.postinst	2006-08-10 04:10:17.000000000 +0800
+++ hobbit-4.2.0-patched/debian/hobbit.postinst	2006-10-07 18:14:24.000000000 +0800
@@ -47,9 +47,9 @@
 
 	# Update configuration file
 	cp -a -f $CONFIGFILE $CONFIGFILE.tmp
-	sed -e 's/^BBSERVERHOSTNAME=.*/BBSERVERHOSTNAME=\"${BBSERVERHOSTNAME}\"/' \
-	    -e 's/^BBSERVERIP=.*/BBSERVERIP=\"${BBSERVERIP}\"/'                   \
-	    -e 's/^BBSERVERWWWNAME=.*/BBSERVERWWWNAME=\"${BBSERVERWWWNAME}\"/'    \
+	sed -e "s/^BBSERVERHOSTNAME=.*/BBSERVERHOSTNAME=\"${BBSERVERHOSTNAME}\"/" \
+	    -e "s/^BBSERVERIP=.*/BBSERVERIP=\"${BBSERVERIP}\"/"                   \
+	    -e "s/^BBSERVERWWWNAME=.*/BBSERVERWWWNAME=\"${BBSERVERWWWNAME}\"/"    \
 	    < $CONFIGFILE > $CONFIGFILE.tmp
 	mv -f $CONFIGFILE.tmp $CONFIGFILE
     ;;
------------------end of patch---------------

Hope this helps. :)


Cheers,
wens




More information about the Xymon mailing list