From d4ea08eb2e9c37808e02017754ee1b00a3e9e356 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 28 Aug 2021 17:38:26 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3c8b111..7489c3d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -51,16 +51,6 @@ if [ -z "$final_path" ]; then ynh_app_setting_set --app=$app --key=final_path --value=$final_path fi -### If nobody installed your app before 4.1, -### then you may safely remove these lines - -# Cleaning legacy permissions -if ynh_legacy_permissions_exists; then - ynh_legacy_permissions_delete_all - - ynh_app_setting_delete --app=$app --key=is_public -fi - #================================================= # CREATE DEDICATED USER #================================================= @@ -75,11 +65,9 @@ ynh_system_user_create --username=$app --home_dir="$final_path" if [ "$upgrade_type" == "UPGRADE_APP" ] then - ynh_script_progression --message="Upgrading source files..." --weight=3 + ynh_script_progression --message="Upgrading source files..." --weight=2 - # Download, check integrity, uncompress and patch the source from app.src - #ynh_setup_source --dest_dir="$final_path" - ynh_add_config --template="../conf/ifm.php" --destination="$final_path/ifm.php" + mv -f "../conf/ifm.php" "$final_path/ifm.php" fi chmod 750 "$final_path"