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"