From 54a8876bd1fc2a3f73cace50db9ba9117245ea77 Mon Sep 17 00:00:00 2001 From: mkochano Date: Sun, 19 Mar 2000 14:05:27 +0000 Subject: [PATCH] - Option to specify owner and permissions of saved reports. Changed files: calamaris-croniface -> 1.3 calamaris.sysconfig -> 1.2 --- calamaris-croniface | 4 ++++ calamaris.sysconfig | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/calamaris-croniface b/calamaris-croniface index dec6c71..fd8d832 100644 --- a/calamaris-croniface +++ b/calamaris-croniface @@ -16,6 +16,8 @@ # Default configuration. SAVE_FORMAT="HTML" +SAVE_OWNER="nobody.nobody" +SAVE_PERM="rw-r--r--" SEND_FORMAT="plain" SEND_TO="root" DAILY_ACTION="send" @@ -68,6 +70,8 @@ make_stats() { ARG="$ARG_PLAIN" fi call_calamaris "$1" "$ARG" > $3 + chown $SAVE_OWNER $3 + chmod $SAVE_PERM $3 fi # Generate statistics and send them. diff --git a/calamaris.sysconfig b/calamaris.sysconfig index 461fbf1..89b0a3e 100644 --- a/calamaris.sysconfig +++ b/calamaris.sysconfig @@ -1,6 +1,5 @@ # 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. @@ -19,6 +18,12 @@ # 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="

Caching Proxy Statistics

" -- 2.43.0