wok-4.x rev 1979
webalizer: start only if never run before
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 04 09:55:26 2009 +0000 (2009-01-04) |
parents | f606ce8506ca |
children | 42e5c02d15e4 |
files | webalizer/receipt |
line diff
1.1 --- a/webalizer/receipt Sun Jan 04 09:43:17 2009 +0000 1.2 +++ b/webalizer/receipt Sun Jan 04 09:55:26 2009 +0000 1.3 @@ -40,7 +40,7 @@ 1.4 { 1.5 grep -q webalizer $1/etc/init.d/local.sh || \ 1.6 cat >> $1/etc/init.d/local.sh <<EOT 1.7 -/usr/bin/webalizer -o /var/www/webalizer /var/log/apache/access_log 1.8 +[ -f /var/www/webalizer/index.html ] || /usr/bin/webalizer -o /var/www/webalizer /var/log/apache/access_log 1.9 EOT 1.10 if [ -z "$1" ]; then 1.11 webalizer -o /var/www/webalizer /var/log/apache/access_log