Skip to content

Commit 1f44fb7

Browse files
Merge pull request #618 from elfosardo/fix-runlogwatch-exits
🐛 Fix runlogwatch failure if LOG_DIR does not exist
2 parents f8a7758 + dc60eca commit 1f44fb7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/runlogwatch.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Ramdisk logs path
44
LOG_DIR="/shared/log/ironic/deploy"
55

6+
mkdir -p "${LOG_DIR}"
7+
68
python3 -m pyinotify -e IN_CLOSE_WRITE -v "${LOG_DIR}" |
79
while read -r path _action file; do
810
echo "************ Contents of ${path}/${file} ramdisk log file bundle **************"

0 commit comments

Comments
 (0)