Skip to content

Commit

Permalink
Ensure LOG_DIR exists or default to /dev/shm
Browse files Browse the repository at this point in the history
  • Loading branch information
twojstaryzdomu committed Dec 15, 2024
1 parent afa50ae commit 94c124c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scriptmodules/supplementary/runcommand/runcommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function get_config() {
[[ -z "$IMAGE_DELAY" ]] && IMAGE_DELAY=2
iniGet "log_dir"
LOG_DIR="$ini_value"
[[ -z "$LOG_DIR" ]] && LOG_DIR="/dev/shm"
[[ -d "$LOG_DIR" ]] && LOG_DIR="/dev/shm"
LOG="$LOG_DIR/runcommand.log"
fi

Expand Down

0 comments on commit 94c124c

Please sign in to comment.