Skip to content

Commit

Permalink
Merge pull request #618 from elfosardo/fix-runlogwatch-exits
Browse files Browse the repository at this point in the history
🐛 Fix runlogwatch failure if LOG_DIR does not exist
  • Loading branch information
metal3-io-bot authored Feb 6, 2025
2 parents f8a7758 + dc60eca commit 1f44fb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/runlogwatch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 **************"
Expand Down

0 comments on commit 1f44fb7

Please sign in to comment.