Commit 52119d12af80a0eeb184f63fa6ff827bca59a082

Authored by Joanne ago
1 parent 94a64884b5
Exists in master

delete log file day term change

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -13,7 +13,7 @@
13 13 LOG_DIR=$HOME/logs
14 14 mkdir -p $LOG_DIR
15 15 TODAY=`date +"%Y%m%d"`
16   -DATE_SUB="30"
  16 +DATE_SUB="7"
17 17 DAY_TO_DELETE="$(date "+%Y%m%d" -d "$DATE_SUB days ago")"
18 18 DELETE_LOG="${LOG_DIR}/$1_$DAY_TO_DELETE.log"
19 19 LOG="${LOG_DIR}/$1_$TODAY.log"