diff --git a/scriptmodules/supplementary/runcommand/runcommand.sh b/scriptmodules/supplementary/runcommand/runcommand.sh index c29c5587b9..0b6e263392 100755 --- a/scriptmodules/supplementary/runcommand/runcommand.sh +++ b/scriptmodules/supplementary/runcommand/runcommand.sh @@ -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