From a8e4f7f09280c87e48b1c08b46366119bf4c03c4 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 5 Jul 2022 01:54:51 +0200 Subject: [PATCH] Fix #75 --- scripts/install | 1 + scripts/upgrade | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index b56fae4..75cd3f5 100644 --- a/scripts/install +++ b/scripts/install @@ -83,6 +83,7 @@ ynh_script_progression --message="Setting up source files..." --weight=7 ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" +echo "$(ynh_app_upstream_version)" > "$final_path/version_static.txt" chmod 750 "$final_path" chmod -R o-rwx "$final_path" diff --git a/scripts/upgrade b/scripts/upgrade index 8be47bc..30c77c5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -111,6 +111,7 @@ then # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" + echo "$(ynh_app_upstream_version)" > "$final_path/version_static.txt" fi chmod 750 "$final_path"