From 0c3683e47087354d09196ee9f0e6aae5e4b65d03 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 19 Oct 2022 00:31:01 +0200 Subject: [PATCH] Revert "Get ride of previous sources" This reverts commit 6b0c6eb5b365af7d8e8829fe4e75a9720afd7a96. --- scripts/upgrade | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 88e51536..49a41324 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -101,20 +101,9 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." --weight=1 - tmpdir="$(mktemp -d)" - cp "$final_path/.htconfig.php" "$tmpdir/.htconfig.php" - cp "$final_path/php.log" "$tmpdir/php.log" - rsync -a "$final_path/store" "$tmpdir/." - 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="store/ .htconfig.php php.log" ynh_setup_source --dest_dir="$final_path/addon" --source_id="app_addons" - - cp "$tmpdir/.htconfig.php" "$final_path/.htconfig.php" - cp "$tmpdir/php.log" "$final_path/php.log" - rsync -a "$tmpdir/store" "$final_path/." - ynh_secure_remove --file="$tmpdir" fi mkdir -p "$final_path/store"