From d5b51248c068e91ae2161452d78c84d52f745e5a Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Tue, 12 Sep 2023 21:56:42 +0200 Subject: [PATCH] Update upgrade try fix keep association.sqlite --- scripts/upgrade | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index e3fe4d8..5818d7a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -38,7 +38,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=5 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --keep="config.local.user.php data" --full_replace=1 + ynh_setup_source --dest_dir="$install_dir" --keep="association.sqlite config.local.user.php data" fi chmod -R o-rwx "$install_dir" @@ -98,15 +98,13 @@ chmod 660 "$install_dir/config.local.user.php" #================================================= ynh_script_progression --message="Finalise upgrade" --weight=1 -# Move the database on folder data/data created and remove the folder -mv $install_dir/data/data/association.sqlite $install_dir/data/ -ynh_secure_remove --file=$install_dir/data/data - ynh_local_curl "/admin/index.php" sleep 5 ynh_local_curl "/index.php" sleep 5 +# Move the database on folder data/data created and remove the folder +ynh_secure_remove --file=$install_dir/data/data #================================================= # END OF SCRIPT #=================================================