gh-141: Add ignores to curl and wget commands

5.8.0
Alejandro Huertas 6 years ago committed by Vlastimil Holer
parent 1d975fc962
commit 223a3762a8

@ -17,6 +17,7 @@ if which curl >/dev/null 2>&1; then
curl -X "PUT" "${ONEGATE_ENDPOINT}/vm" \
--header "X-ONEGATE-TOKEN: $TOKENTXT" \
--header "X-ONEGATE-VMID: $VMID" \
--insecure \
-d "READY=YES"
if [ "$?" = "0" ]; then
@ -28,7 +29,8 @@ if which wget >/dev/null 2>&1; then
wget --method=PUT "${ONEGATE_ENDPOINT}/vm" \
--body-data="READY=YES" \
--header "X-ONEGATE-TOKEN: $TOKENTXT" \
--header "X-ONEGATE-VMID: $VMID"
--header "X-ONEGATE-VMID: $VMID" \
--no-check-certificate
if [ "$?" = "0" ]; then
exit 0

Loading…
Cancel
Save