mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Fix auto update
This commit is contained in:
parent
ebcff05cd8
commit
fa25c055b3
1 changed files with 4 additions and 1 deletions
|
@ -4,6 +4,8 @@ set -eu
|
||||||
|
|
||||||
readonly app_name=seafile
|
readonly app_name=seafile
|
||||||
|
|
||||||
|
source auto_update_config.sh
|
||||||
|
|
||||||
get_from_manifest() {
|
get_from_manifest() {
|
||||||
result=$(python3 <<EOL
|
result=$(python3 <<EOL
|
||||||
import toml
|
import toml
|
||||||
|
@ -24,7 +26,8 @@ check_app_version() {
|
||||||
local docker_digest_latest="$(echo "$docker_request_res" |
|
local docker_digest_latest="$(echo "$docker_request_res" |
|
||||||
jq -r 'select(.name == "latest") | .digest')"
|
jq -r 'select(.name == "latest") | .digest')"
|
||||||
local app_remote_version=$(echo "$docker_request_res" |
|
local app_remote_version=$(echo "$docker_request_res" |
|
||||||
jq -r 'select(.digest == "'"$docker_digest_latest"'" and .name != "latest") | .name')
|
jq -r 'select(.digest == "'"$docker_digest_latest"'" and .name != "latest") | .name' |
|
||||||
|
grep -E -v ".*-latest" | tail -n1)
|
||||||
|
|
||||||
## Check if new build is needed
|
## Check if new build is needed
|
||||||
if [[ "$app_version" != "$app_remote_version" ]]
|
if [[ "$app_version" != "$app_remote_version" ]]
|
||||||
|
|
Loading…
Reference in a new issue