From b263a130e76743a893381da4ff006a794323670c Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 1 Jul 2019 22:57:11 +0200 Subject: [PATCH] Fix upgrade --- scripts/upgrade | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 2007834..9a5866e 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -81,15 +81,10 @@ path_url=$(ynh_normalize_url_path --path_url=$path_url) if [ "$upgrade_type" == "UPGRADE_APP" ] then - # Create a temporary directory - tmpdir="$(mktemp -d)" - # Backup the config file in the temp dir - cp -a "$final_path/config/config.ini.php" "$tmpdir/." - + ynh_script_progression --message="Upgrading source files..." --time --weight=1 + # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" - sudo cp -a "$tmpdir/config.ini.php" "${final_path}/config/." - sudo rm -Rf "$tmpdir" fi #=================================================