summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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