# Default configuration.
SAVE_FORMAT="HTML"
+SAVE_OWNER="nobody.nobody"
+SAVE_PERM="rw-r--r--"
SEND_FORMAT="plain"
SEND_TO="root"
DAILY_ACTION="send"
ARG="$ARG_PLAIN"
fi
call_calamaris "$1" "$ARG" > $3
+ chown $SAVE_OWNER $3
+ chmod $SAVE_PERM $3
fi
# Generate statistics and send them.
# Customized settings for Calamaris
# $Id$
-# Check /usr/share/doc/calamaris*/examples for some examples.
# This file is written with few assumptions:
# 1. Calamaris is run AFTER logrotate.
# you don't have to set this variable.
#SAVE_FORMAT="HTML"
+# If reports are saved in http daemons directory, they should have correrct
+# permissions and owner, so the daemon can read them. By default user and
+# group are "nobody.nobody" and the permissions are "rw-r--r--".
+#SAVE_OWNER="nobody.nobody"
+#SAVE_PERM="rw-r--r--"
+
# This piece of HTML code is inserted at top of reports generated in HTML
# format. Default is shown below.
#HTML_LOGO="<H1>Caching Proxy Statistics</H1>"