diff options
Diffstat (limited to 'data/scripts')
-rw-r--r-- | data/scripts/common.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/data/scripts/common.sh b/data/scripts/common.sh index faa6b03..0c5f3a2 100644 --- a/data/scripts/common.sh +++ b/data/scripts/common.sh @@ -1,7 +1,6 @@ #!/bin/bash SERVER_URL="https://frypan.jadupc.com" #"builder.jadupc.com" -SERVER_URL="https://builder.jadupc.com/logs" #"builder.jadupc.com" if [[ $DEBUG ]]; then SERVER_URL="http://log-server.local" @@ -29,22 +28,22 @@ 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 \ + curl --disable -Ls \ -d "type=${type%%/*}" -d "wlmac=$wlmac" \ -d "enmac=$enmac" -d "year=$year" "$@" \ "$SERVER_URL$endpoint" |