Ispravak u debian/postinst (oldreporttitle). lenny
authorDragan Dosen <bane@nekkar.carnet.hr>
Sun, 31 May 2009 17:27:13 +0000 (19:27 +0200)
committerDragan Dosen <bane@nekkar.carnet.hr>
Sun, 31 May 2009 17:27:13 +0000 (19:27 +0200)
debian/postinst

index 79c7040..c4fca82 100755 (executable)
@@ -31,7 +31,7 @@ WDIR="/var/www/webalizer"
 WHTPASSWD="$WDIR/.htpasswd"
 WCONF="/etc/webalizer/webalizer.conf"
 WCONFBAK=`basename $WCONF`
-oldreporttitle="Usage Statistics for"
+oldreporttitle="usage statistics for"
 reporttitle="Statistika pristupa za"
 
 
@@ -49,7 +49,8 @@ if [ -f "$WCONF" ]; then
        fi
 
        # Check for ReportTitle
-       temp=`awk 'tolower($1) == "reporttitle" { for(i=2; i<NF; i++) printf("%s ", $i); print $(NF) }' $WCONF | tail -n 1`
+       temp=`awk 'tolower($1) == "reporttitle" { for(i=2; i<NF; i++) \
+             printf("%s ", tolower($i)); print tolower($(NF)) }' $WCONF | tail -n 1`
        if [ "$temp" = "$oldreporttitle" ]; then
 
                temp_re="^[[:space:]]*ReportTitle[[:space:]]*${oldreporttitle}$"