diff --git a/scripts/runlogwatch.sh b/scripts/runlogwatch.sh index fe48de0dc..40f9d5f80 100755 --- a/scripts/runlogwatch.sh +++ b/scripts/runlogwatch.sh @@ -3,6 +3,8 @@ # Ramdisk logs path LOG_DIR="/shared/log/ironic/deploy" +mkdir -p "${LOG_DIR}" + python3 -m pyinotify -e IN_CLOSE_WRITE -v "${LOG_DIR}" | while read -r path _action file; do echo "************ Contents of ${path}/${file} ramdisk log file bundle **************"