From 67fa733294222d664f7bbcd89434863043e8cc70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 6 Jun 2024 10:06:30 +0200 Subject: [PATCH] cleaning --- manifest.toml | 2 +- scripts/upgrade | 16 +++------------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/manifest.toml b/manifest.toml index 0a32635..fe3fa03 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Laverna" description.en = "Taking note with Markdown editor and encryption support" description.fr = "Prise de note avec éditeur Markdown et chiffrement" -version = "0.7.51~ynh6" +version = "0.7.51~ynh7" maintainers = [] diff --git a/scripts/upgrade b/scripts/upgrade index 6fcb774..bd826b4 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -8,23 +8,13 @@ source /usr/share/yunohost/helpers -#================================================= -# CHECK VERSION -#================================================= - -upgrade_type=$(ynh_check_app_version_changed) - #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= +ynh_script_progression --message="Upgrading source files..." --weight=4 -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading source files..." --weight=4 - - # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" -fi +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source --dest_dir="$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir"