mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-01-30 11:09:12 +01:00
Ticket refs #15323: SDX810 RG starts adding periodic event in queue rather processing them
This commit is contained in:
parent
82a64a7dbb
commit
e1c6fbeeb4
1 changed files with 4 additions and 4 deletions
|
|
@ -242,9 +242,9 @@ handle_action() {
|
|||
if [ "$__arg7" != "" ];then
|
||||
resp=$(curl --fail --capath $__arg7 --write-out %{http_code} --silent -o /tmp/icwmp_download --output /dev/nul $__arg1)
|
||||
elif [ ${__arg1:0:8} = https:// ];then
|
||||
resp=`wget --server-response -O /tmp/icwmp_download --no-check-certificate "$__arg1" 2>&1 | awk '/^ HTTP/{print $2}'`
|
||||
resp=`wget --server-response -O /tmp/icwmp_download --no-check-certificate "$__arg1" --timeout=10 --tries=1 2>&1 | awk '/^ HTTP/{print $2}'`
|
||||
else
|
||||
resp=`wget --server-response -O /tmp/icwmp_download "$__arg1" 2>&1 | awk '/^ HTTP/{print $2}'`
|
||||
resp=`wget --server-response -O /tmp/icwmp_download "$__arg1" --timeout=10 --tries=1 2>&1 | awk '/^ HTTP/{print $2}'`
|
||||
fi
|
||||
if [ "$resp" == "404" ];then
|
||||
let fault_code=$fault_code+$FAULT_CPE_DOWNLOAD_FAIL_CONTACT_SERVER
|
||||
|
|
@ -264,9 +264,9 @@ handle_action() {
|
|||
if [ "$__arg7" != "" ];then
|
||||
resp=$(curl --fail --capath $__arg7 -u $__arg4:$__arg5 --write-out %{http_code} --silent -o /tmp/icwmp_download --output /dev/nul $__arg1)
|
||||
elif [ ${__arg1:0:8} = https:// ];then
|
||||
resp=`wget --server-response -O /tmp/icwmp_download --no-check-certificate "$url" 2>&1 | awk '/^ HTTP/{print $2}'`
|
||||
resp=`wget --server-response -O /tmp/icwmp_download --no-check-certificate "$url" --timeout=10 --tries=1 2>&1 | awk '/^ HTTP/{print $2}'`
|
||||
else
|
||||
resp=`wget --server-response -O /tmp/icwmp_download "$url" 2>&1 | awk '/^ HTTP/{print $2}'`
|
||||
resp=`wget --server-response -O /tmp/icwmp_download "$url" --timeout=10 --tries=1 2>&1 | awk '/^ HTTP/{print $2}'`
|
||||
fi
|
||||
|
||||
resp=`echo $resp| awk '{print $NF}'`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue