From 95e4e8613c03e5fec0fd38e42e6571e5ec151948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 16 Aug 2022 07:50:30 +0200 Subject: [PATCH] set relative path for --keep opt (#36) --- manifest.json | 2 +- scripts/upgrade | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/manifest.json b/manifest.json index f0dca72..ee985fc 100644 --- a/manifest.json +++ b/manifest.json @@ -22,7 +22,7 @@ "email": "pierre.levasseur@free.fr" }, "requirements": { - "yunohost": ">= 4.3.0" + "yunohost": ">= 11.0.9" }, "multi_instance": false, "services": [ diff --git a/scripts/upgrade b/scripts/upgrade index 4c26f63..6a6febe 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -93,15 +93,8 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." --weight=2 - # Remove the app directory securely - ynh_secure_remove --file="$final_path" - # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" #--keep="$final_path/db/config.php" - - # Remove the tmp directory securely - #nh_secure_remove --file="$tmpdir" - ynh_exec_warn_less ynh_add_config --template="../conf/config.php" --destination="$final_path/db/config.php" + ynh_setup_source --dest_dir="$final_path" --keep="db/config.php" fi chmod 750 "$final_path"