commit | fff6fec46d2659c39e05984a682ec8986715fbc9 | [log] [tgz] |
---|---|---|
author | Chmouel Boudjnah <chmouel@chmouel.com> | Fri Mar 09 15:37:56 2012 +0000 |
committer | Chmouel Boudjnah <chmouel@chmouel.com> | Fri Mar 09 19:34:51 2012 +0000 |
tree | e80ebf7a444310a244db8f77175806b2b00df3a7 | |
parent | 165121f7b69d9b8ad01d3256d068fdf77cebf840 [diff] |
Make sure Logdir is created. - FIxes bug 950902. Change-Id: I1e387b4c97551744673281fdeae61d87c1fc39ab
diff --git a/stack.sh b/stack.sh index eead8a1..1562886 100755 --- a/stack.sh +++ b/stack.sh
@@ -472,6 +472,7 @@ LOGDAYS=${LOGDAYS:-7} LOGDIR=$(dirname "$LOGFILE") LOGNAME=$(basename "$LOGFILE") + mkdir -p $LOGDIR find $LOGDIR -maxdepth 1 -name $LOGNAME.\* -mtime +$LOGDAYS -exec rm {} \; TIMESTAMP_FORMAT=${TIMESTAMP_FORMAT:-"%F-%H%M%S"}