From 69d06164d2417de0ef5dc600bda8d56aaf9ceea8 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 7 Feb 2022 23:25:46 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 4da8c79..f2d3b54 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -112,17 +112,8 @@ then # This condition is only for CI test to go through the upgrade process ynh_setup_source --dest_dir="$final_path" else - # Create a temporary directory - tmpdir="$(mktemp -d)" - - cp -a "$final_path/config/config.ini.php" "$tmpdir/config.ini.php" - # Remove the app directory securely - ynh_secure_remove --file=$final_path # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" - cp -a "$tmpdir/config.ini.php" "$final_path/config/config.ini.php" - # Remove the tmp directory securely - ynh_secure_remove --file="$tmpdir" + ynh_setup_source --dest_dir="$final_path" --keep="$final_path/config/config.ini.php" chown -R $app:www-data "$final_path" ynh_exec_as $app php${phpversion} $final_path/console core:update -n