[Popcon-commits] cvs commit to popularity-contest/debian by pere

popcon-commits at lists.alioth.debian.org popcon-commits@lists.alioth.debian.org
Mon Jul 4 18:39:52 UTC 2005


Update of /cvsroot/popcon/popularity-contest/debian
In directory haydn:/tmp/cvs-serv3786

Modified Files:
	postinst 
Log Message:
Make sure the USEHTTP option is added to an existing config file.


Index: postinst
===================================================================
RCS file: /cvsroot/popcon/popularity-contest/debian/postinst,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- postinst	3 Jul 2005 10:16:44 -0000	1.13
+++ postinst	4 Jul 2005 18:39:49 -0000	1.14
@@ -80,6 +80,15 @@
 	    # Replace only if the content changed, to avoid changing the
 	    # config file date when no change was done.
 
+	    # Make sure the config file have the USEHTTP entry if we
+	    # are to enable HTTP.
+	    if [ "yes" = "$USEHTTP" ] ; then
+		if grep -q USEHTTP $conffile; then
+		    :
+		else
+		    echo "USEHTTP=\"$USEHTTP\"" >> $conffile
+		fi
+	    fi
 
 	    # Commenting out the obsolete addresses, to use the
 	    # default config from /usr/share/ on hosts where





More information about the Popcon-commits mailing list