diff options
author | 2023-04-07 22:03:01 +0600 | |
---|---|---|
committer | 2023-04-07 22:03:01 +0600 | |
commit | ba05ac4db16219e717b82558643a6c2f1de2744a (patch) | |
tree | 86ea6c0487e1bad2d817bc9492f7307a3c276f45 /data/scripts | |
parent | afe692f63555d710632964a49c9a4321cb89d083 (diff) | |
download | shopno-os-log-sync-ba05ac4db16219e717b82558643a6c2f1de2744a.tar.gz shopno-os-log-sync-ba05ac4db16219e717b82558643a6c2f1de2744a.zip |
Add per-user stat sync support
Signed-off-by: Mubashshir <ahm@jadupc.com>
Diffstat (limited to 'data/scripts')
-rw-r--r-- | data/scripts/common.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/data/scripts/common.sh b/data/scripts/common.sh index 0c5f3a2..0fbaa45 100644 --- a/data/scripts/common.sh +++ b/data/scripts/common.sh @@ -28,23 +28,23 @@ function communicate wlmac="$3" enmac="$4" year="$5" - shift 5 + shift 5 case "${type#*/}" in weekly) week="$1" - shift 1 - set -- -d "week=$week" "$@" + shift 1 + set -- -d "week=$week" "$@" ;; daily) month="$1" day="$2" - shift 2 + shift 2 set -- -d "month=$month" -d "day=$day" "$@" ;; esac curl --disable -Ls \ -d "type=${type%%/*}" -d "wlmac=$wlmac" \ - -d "enmac=$enmac" -d "year=$year" "$@" \ + -d "enmac=$enmac" -d "year=$year" -d "user=$USER" "$@" \ "$SERVER_URL$endpoint" } |