Hi,
the mentioned code breaks for special files (like /dev/null), too, with
the following error message:
/etc/cron.weekly/webalizer:
/etc/cron.weekly/webalizer: line 27: [: 1,: integer expression expected
This is because I prefer to run webalizer from my own wrapper script,
and specified /dev/null as the log file.
So I suggest to use
test -f "${nonrotatedlog}" || exit 0
test -s "${nonrotatedlog}" || exit 0
somewhere.
Thomas
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages webalizer depends on:
ii debconf 1.4.30.13 Debian configuration
ii libc6 2.3.2.ds1-22 GNU C Library: Shared
ii libdb3 3.2.9-22 Berkeley v3 Database
ii libgd2-xpm 2.0.33-1.1 GD Graphics Library
ii libpng12-0 1.2.8rel-1 PNG library - runtime
ii zlib1g 1:1.2.2-4 compression library
-- debconf information:
* webalizer/logfile: /dev/null
* webalizer/doc_title: Usage Statistics for
webalizer/upgrading:
* webalizer/directory: /var/www/webalizer
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]