change default start/end to yesterday
This commit is contained in:
parent
775e2feb2b
commit
2380d19a0d
14
.vscode/numbered-bookmarks.json
vendored
14
.vscode/numbered-bookmarks.json
vendored
@ -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
|
||||
]
|
||||
}
|
||||
]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user