Switch from azure to local api for update checks

This commit is contained in:
Eric Nemchik 2018-02-27 08:43:40 -06:00
commit 2e13005fac

View file

@ -177,7 +177,7 @@ declare -i j=5
while [ $i -le $j ]
do
.log 6 "Checking for latest version"
json=$(curl -sL https://ombiservice.azurewebsites.net/api/update/DotNetCore)
json=$(curl -sL http://$ip:$port/api/v1/Update/DotNetCore)
.log 8 "json: $json"
latestversion=$(grep -Po '(?<="updateVersionString":")([^"]+)' <<< "$json")
.log 7 "latestversion: $latestversion"
@ -334,4 +334,4 @@ elif [ $seconds -eq 1 ]; then
fi
durationmsg="Update complete...elapsed time $duration..."
durationmsg="${durationmsg// / }"
.log 6 "$durationmsg"
.log 6 "$durationmsg"