r67735 - in /trunk/w3c-linkchecker/debian: README.Debian postinst

periapt-guest at users.alioth.debian.org periapt-guest at users.alioth.debian.org
Sun Jan 23 15:46:17 UTC 2011


Author: periapt-guest
Date: Sun Jan 23 15:45:30 2011
New Revision: 67735

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=67735
Log:
private IPs found

Modified:
    trunk/w3c-linkchecker/debian/README.Debian
    trunk/w3c-linkchecker/debian/postinst

Modified: trunk/w3c-linkchecker/debian/README.Debian
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/w3c-linkchecker/debian/README.Debian?rev=67735&op=diff
==============================================================================
--- trunk/w3c-linkchecker/debian/README.Debian (original)
+++ trunk/w3c-linkchecker/debian/README.Debian Sun Jan 23 15:45:30 2011
@@ -1,3 +1,7 @@
 By default this service will be set up on localhost and will not
 be permitted on access websites set up on private IP addresses. To
 change these run 'dpkg-reconfigure w3c-linkchecker'.
+
+The configuration file is /etc/w3c/checklink.conf. Not all of the 
+options in that file are currently configurable via dpkg-reconfigure.
+Those would need to be changed manually.

Modified: trunk/w3c-linkchecker/debian/postinst
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/w3c-linkchecker/debian/postinst?rev=67735&op=diff
==============================================================================
--- trunk/w3c-linkchecker/debian/postinst (original)
+++ trunk/w3c-linkchecker/debian/postinst Sun Jan 23 15:45:30 2011
@@ -36,7 +36,12 @@
         echo ips, $RET
         if [ "$RET" ]
         then
-            sed -i -e "s|^(# )?Allow_Private_IPs = [01]$|Allow_Private_IPs = $RET|" $CFG_FILE
+            VALUE=1
+            if [ "$RET" = "false" ]
+            then
+                VALUE=0
+            fi
+            sed -i -e "s|^\(# \)\?Allow_Private_IPs = [01]$|Allow_Private_IPs = $VALUE|" $CFG_FILE
         fi
     ;;
 




More information about the Pkg-perl-cvs-commits mailing list