diff --git a/scripts/install b/scripts/install index 203bfae..952486d 100644 --- a/scripts/install +++ b/scripts/install @@ -7,6 +7,7 @@ #================================================= source _common.sh +source ynh_detect_arch__2 source /usr/share/yunohost/helpers #================================================= @@ -25,7 +26,6 @@ path_url=$YNH_APP_ARG_PATH admin=$YNH_APP_ARG_ADMIN is_public=$YNH_APP_ARG_IS_PUBLIC secret_key=$(ynh_string_random) -architecture=$(ynh_detect_arch) app=$YNH_APP_INSTANCE_NAME @@ -92,6 +92,7 @@ ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name ynh_script_progression --message="Setting up source files..." ynh_app_setting_set --app=$app --key=final_path --value=$final_path +architecture=$(ynh_detect_arch) # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" --source_id="$architecture" diff --git a/scripts/upgrade b/scripts/upgrade index bc3c699..d4b9110 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -124,7 +124,8 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." - # Download, check integrity, uncompress and patch the source from app.src + architecture=$(ynh_detect_arch) + # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" --source_id="$architecture" fi