From 982f242fb548c038e36e81c5f44f1987e0b5c101 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 28 Feb 2024 18:26:31 +0100 Subject: [PATCH] Remove upgrade_type check --- manifest.toml | 2 +- scripts/upgrade | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/manifest.toml b/manifest.toml index 27d3693..d36ae38 100644 --- a/manifest.toml +++ b/manifest.toml @@ -4,7 +4,7 @@ id = "scrutiny" name = "Scrutiny" description.en = "WebUI for smartd S.M.A.R.T monitoring" -version = "0.7.3~ynh2" +version = "0.7.3~ynh3" maintainers = ["ewilly"] diff --git a/scripts/upgrade b/scripts/upgrade index 2492ee8..dab23a6 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -38,15 +38,12 @@ fi # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading source files..." --weight=1 +ynh_script_progression --message="Upgrading source files..." --weight=1 - # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --source_id="scrutiny-web-linux" --dest_dir="$install_dir/bin" - ynh_setup_source --source_id="scrutiny-collector-metrics-linux" --dest_dir="$install_dir/bin" - ynh_setup_source --source_id="scrutiny-web-frontend" --dest_dir="$install_dir/web" -fi +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source --source_id="scrutiny-web-linux" --dest_dir="$install_dir/bin" +ynh_setup_source --source_id="scrutiny-collector-metrics-linux" --dest_dir="$install_dir/bin" +ynh_setup_source --source_id="scrutiny-web-frontend" --dest_dir="$install_dir/web" #================================================= # REAPPLY SYSTEM CONFIGURATIONS