Skip to content

Commit

Permalink
Fix runlogwatch failure if LOG_DIR does not exist
Browse files Browse the repository at this point in the history
Signed-off-by: Riccardo Pittau <elfosardo@gmail.com>
  • Loading branch information
elfosardo committed Feb 4, 2025
1 parent a3c210b commit dc60eca
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 dc60eca

Please sign in to comment.