From 75365143493aaed9a6b26576115fd8d3d51a0411 Mon Sep 17 00:00:00 2001 From: liberodark Date: Sat, 23 May 2020 13:25:24 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index a5c400e..c2b10ac 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -18,8 +18,14 @@ cp -a /opt/yunohost/"$app"/AdGuardHome.yaml /opt/yunohost/"$app"/AdGuardHome.yam #================================================= ynh_app_setting_set "$app" final_path "$final_path" -# Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source "$final_path" + +# Download, check integrity, uncompress and patch the source from app-[arch].src +case $(uname -m) in + x86_64) ynh_setup_source "$final_path" "app-amd64" ;; + aarch64) ynh_setup_source "$final_path" "app-arm64" ;; + armv7l) ynh_setup_source "$final_path" "app-arm" ;; + *) ynh_die "Unknown arch" ;; +esac #================================================= # NGINX CONFIGURATION