[Pkg-awstats-devel] Bug#582861: awstats: buildstatic.sh cron job fails with "[: 27: yes: unexpected operator"
Fredrik Olofsson
frol at hupp.se
Mon May 24 08:32:30 UTC 2010
Package: awstats
Version: 6.9.5~dfsg-3
Severity: normal
The buildstatic.sh cron job fails with "[: 27: yes: unexpected operator".
See the attached patch for a fix (replace "==" with "=" in shell expression.
Thanks
/Fredrik
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages awstats depends on:
ii perl 5.10.1-12 Larry Wall's Practical Extraction
Versions of packages awstats recommends:
ii libnet-xwhois-perl 0.90-3 Whois Client Interface for Perl5
Versions of packages awstats suggests:
ii apache2 2.2.15-5 Apache HTTP Server metapackage
ii apache2-mpm-prefork [httpd] 2.2.15-5 Apache HTTP Server - traditional n
ii libgeo-ipfree-perl 1.100470-1 module to look up the country of a
ii libnet-dns-perl 0.66-2 Perform DNS queries from a Perl sc
ii libnet-ip-perl 1.25-2 Perl extension for manipulating IP
ii liburi-perl 1.54-1 module to manipulate and access UR
-- Configuration Files:
/etc/awstats/awstats.conf.local changed [not included]
-- no debconf information
-------------- next part --------------
--- usr/share/awstats/tools/buildstatic.sh 2010-05-19 13:36:14.000000000 +0200
+++ /usr/share/awstats/tools/buildstatic.sh 2010-05-24 09:57:10.661682808 +0200
@@ -24,7 +24,7 @@
AWSTATS_LANG="en"
[ ! -r "$DEFAULT" ] || . "$DEFAULT"
-[ "$AWSTATS_ENABLE_BUILDSTATICPAGES" == "yes" ] || exit 0
+[ "$AWSTATS_ENABLE_BUILDSTATICPAGES" = "yes" ] || exit 0
cd /etc/awstats
More information about the Pkg-awstats-devel
mailing list