diff options
-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 |