From 3d246210d480342dcdc19f3ceae791627296c964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 19 Apr 2024 17:40:52 +0200 Subject: [PATCH] cleaning --- manifest.toml | 4 ++-- scripts/upgrade | 12 +++--------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/manifest.toml b/manifest.toml index 3769ced..3549074 100644 --- a/manifest.toml +++ b/manifest.toml @@ -48,8 +48,8 @@ ram.runtime = "50M" [resources.sources] [resources.sources.main] - url = "https://github.com/omeka/omeka-s/archive/refs/tags/v4.1.0.tar.gz" - sha256 = "515c835d89629743b06b7c8985e404ae832ff367eecfe3711420cb10d566a74a" + url = "https://github.com/omeka/omeka-s/releases/download/v4.1.0/omeka-s-4.1.0.zip" + sha256 = "bc0f87c07906c1aef1538b8cd1ab1ee9c3c3fe227ffea96b433a691fbd72d05f" autoupdate.strategy = "latest_github_tag" [resources.system_user] diff --git a/scripts/upgrade b/scripts/upgrade index 6b60d01..daaf3ef 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,8 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers -upgrade_type=$(ynh_check_app_version_changed) - #================================================= # ENSURE DOWNWARD COMPATIBILITY #================================================= @@ -37,14 +35,10 @@ fi #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= +ynh_script_progression --message="Upgrading source files..." --weight=1 -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading source files..." --weight=1 - - # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --keep="config/local.config.php config/database.ini modules themes files" -fi +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source --dest_dir="$install_dir" --keep="config/local.config.php config/database.ini modules themes files" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir"