From 35ad0d05f41aa2cebf8896294a7adbc7b931a792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 9 Oct 2023 22:59:17 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index fe23a1f..56f100f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -37,7 +37,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." --weight=5 - if [ -d "$install_dir/data" ]; then + if [ ! -d "$data_dir/data" ]; then ynh_print_warn "Migrating data directory to $data_dir..." # remove old configuration files @@ -46,7 +46,7 @@ then fi ynh_secure_remove --file="$install_dir/config.local.yunohost.php" - + # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" #--keep="config.local.php" fi