diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2018-09-06 13:18:09 +0000 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2018-09-06 13:35:20 +0000 |
commit | 5a770946c8d436916173638337d74450586cae8d (patch) | |
tree | e9966c22d84d9a6dde463911f480d3939f2bc64a | |
parent | 2a922bf5b9e6cdd77a3bac38c0e429c6515884fc (diff) |
allow pbot group to read logs
-rw-r--r-- | lib/log.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |