mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Fix check version on auto update
This commit is contained in:
parent
fa25c055b3
commit
a0207d64fd
1 changed files with 1 additions and 5 deletions
|
@ -23,11 +23,7 @@ EOL
|
|||
check_app_version() {
|
||||
local docker_request_res="$(curl -s 'https://hub.docker.com/v2/repositories/seafileltd/seafile-mc/tags' -H 'Content-Type: application/json' |
|
||||
jq -r '.results[]')"
|
||||
local docker_digest_latest="$(echo "$docker_request_res" |
|
||||
jq -r 'select(.name == "latest") | .digest')"
|
||||
local app_remote_version=$(echo "$docker_request_res" |
|
||||
jq -r 'select(.digest == "'"$docker_digest_latest"'" and .name != "latest") | .name' |
|
||||
grep -E -v ".*-latest" | tail -n1)
|
||||
local app_remote_version=$(echo "$docker_request_res" | jq -r '.name' | sort -V | grep -E -v 'latest|.*-arm$' | tail -n1)
|
||||
|
||||
## Check if new build is needed
|
||||
if [[ "$app_version" != "$app_remote_version" ]]
|
||||
|
|
Loading…
Add table
Reference in a new issue