change default start/end to yesterday

This commit is contained in:
Asif Bacchus 2019-07-25 12:11:38 -06:00
parent 775e2feb2b
commit 2380d19a0d
2 changed files with 11 additions and 11 deletions

View File

@ -4,15 +4,15 @@
"fsPath": "$ROOTPATH$/pilerbackup.sh",
"bookmarks": [
-1,
370,
65,
196,
268,
119,
507,
201,
-1,
-1,
610
-1,
-1,
-1,
-1,
-1,
-1
]
}
]

View File

@ -127,11 +127,11 @@ scriptHelp () {
printf "${cyan}--start${norm}\n"
printf "Export email starting from this date (inclusive)\n"
printf "Date MUST be provided in the format 'YYYY.MM.DD'\n"
printf "${yellow}(Today's date)${norm}\n\n"
printf "${yellow}(Yesterday's date)${norm}\n\n"
printf "${cyan}--end${norm}\n"
printf "Export email ending at this date (inclusive)\n"
printf "Date MUST be provided in the format 'YYYY.MM.DD'\n"
printf "${yellow}(Today's date)${norm}\n\n"
printf "${yellow}(Yesterday's date)${norm}\n\n"
printf "${magenta}503 functionality\n"
printf "${cyan}-5, --use-503${norm}\n"
@ -201,8 +201,8 @@ webroot="/usr/share/nginx/html"
# piler-export related
exportAll=0
exportStart=$(date +'%Y.%m.%d')
exportEnd=$(date +'%Y.%m.%d')
exportStart=$( date -d 'yesterday' +'%Y.%m.%d' )
exportEnd=$( date -d 'yesterday' +'%Y.%m.%d' )
### process startup parameters