Skip to content

Commit 0142123

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Make sure Logdir is created."
2 parents 0aae5d2 + fff6fec commit 0142123

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stack.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ if [[ -n "$LOGFILE" ]]; then
472472
LOGDAYS=${LOGDAYS:-7}
473473
LOGDIR=$(dirname "$LOGFILE")
474474
LOGNAME=$(basename "$LOGFILE")
475+
mkdir -p $LOGDIR
475476
find $LOGDIR -maxdepth 1 -name $LOGNAME.\* -mtime +$LOGDAYS -exec rm {} \;
476477

477478
TIMESTAMP_FORMAT=${TIMESTAMP_FORMAT:-"%F-%H%M%S"}

0 commit comments

Comments
 (0)