mirror of
https://github.com/Unimatrix0/update_ombi.git
synced 2025-08-19 21:04:04 -07:00
Switch from azure to local api for update checks
This commit is contained in:
parent
2be16cb034
commit
2e13005fac
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue