Author: blues                        Date: Tue Mar  1 15:20:58 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- option to have really quiet webalizer; some reorganization

---- Files affected:
SOURCES:
   webalizer.sysconfig (1.4 -> 1.5) , webalizer.cron (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SOURCES/webalizer.sysconfig
diff -u SOURCES/webalizer.sysconfig:1.4 SOURCES/webalizer.sysconfig:1.5
--- SOURCES/webalizer.sysconfig:1.4     Tue Aug 24 19:36:05 2004
+++ SOURCES/webalizer.sysconfig Tue Mar  1 16:20:53 2005
@@ -12,3 +12,6 @@
 # Supress messages
 # QUIET="YES"
 
+# Don't display any messages
+#REALLY_QUIET="YES"
+

================================================================
Index: SOURCES/webalizer.cron
diff -u SOURCES/webalizer.cron:1.6 SOURCES/webalizer.cron:1.7
--- SOURCES/webalizer.cron:1.6  Sun Jan 23 01:18:51 2005
+++ SOURCES/webalizer.cron      Tue Mar  1 16:20:53 2005
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+WEBALIZER_OPTS=""
 [ -f /etc/sysconfig/webalizer ] && . /etc/sysconfig/webalizer
 umask 0022
 
@@ -8,18 +9,18 @@
        export LANG
        export LC_ALL
        
+       if [ -n "$REALLY_QUIET" ] && [ "$REALLY_QUIET" = "YES" ]; then
+               WEBALIZER_OPTS="-Q"
+       elif [ -n "$QUIET" ] && [ "$QUIET" = "YES" ]; then
+               WEBALIZER_OPTS="-q"
+       fi
+       
        if [ -f /etc/webalizer.conf ]; then
-               if [ -n "$QUIET" ] && [ "$QUIET" = "YES" ]; then
-                       webalizer -q -c /etc/webalizer.conf
-               else
-                       webalizer -c /etc/webalizer.conf
-               fi
+               webalizer ${WEBALIZER_OPTS} -c /etc/webalizer.conf
        fi
        if [ -n "$MULTIPLE" ] && [ "$MULTIPLE" = "YES" ]; then
-               if [ -n "$QUIET" ] && [ "$QUIET" = "YES" ]; then
-                       for i in $(ls /etc/webalizer/*.conf 2>/dev/null); do 
webalizer -q -c $i; done
-               else
-                       for i in $(ls /etc/webalizer/*.conf 2>/dev/null); do 
webalizer -c $i; done
-               fi
+               for i in $(ls /etc/webalizer/*.conf 2>/dev/null); do
+                       webalizer ${WEBALIZER_OPTS} -c $i;
+               done
        fi
 fi
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/webalizer.sysconfig?r1=1.4&r2=1.5&f=u
    http://cvs.pld-linux.org/SOURCES/webalizer.cron?r1=1.6&r2=1.7&f=u


_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to