summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2018-09-06 13:18:09 +0000
committerbill-auger <mr.j.spam.me@gmail.com>2018-09-06 13:35:20 +0000
commit5a770946c8d436916173638337d74450586cae8d (patch)
treee9966c22d84d9a6dde463911f480d3939f2bc64a
parent2a922bf5b9e6cdd77a3bac38c0e429c6515884fc (diff)
allow pbot group to read logs
-rw-r--r--lib/log.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/log.sh b/lib/log.sh
index cfef6fd..f189840 100644
--- a/lib/log.sh
+++ b/lib/log.sh
@@ -253,13 +253,14 @@ log_init() {
# This creates log dir for this run:
log_dir="${config_log_dir}/${now}"
# Security, the log may contain passwords.
- mkdir -m 700 "$log_dir"
+ mkdir -m 770 "$log_dir"
if [[ $? -ne 0 ]]; then
echo "Error: couldn't create log dir"
envbot_quit 1
fi
log_file="${log_dir}/main.log"
touch "$log_file"
+ chmod 660 "$log_file"
if [[ $? -ne 0 ]]; then
echo "Error: couldn't create logfile"
envbot_quit 1