From 68105324535e07d17c7ebbbf2fe428d08072ad0d Mon Sep 17 00:00:00 2001 From: anmol26s Date: Mon, 25 Jun 2018 10:06:31 +0530 Subject: [PATCH] fix copy in upgrade --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 2dd1ceb..676fc6f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -66,7 +66,7 @@ path_url=$(ynh_normalize_url_path $path_url) # Create a temporary directory tmpdir="$(mktemp -d)" # Backup the config file in the temp dir -cp -a "$final_path/data" "$tmpdir/data" +cp -a "$final_path/data/" "$tmpdir/data/" # Remove the app directory securely ynh_secure_remove "$final_path" @@ -77,7 +77,7 @@ ynh_secure_remove "$final_path" # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source "$final_path" -sudo cp -a "$tmpdir/data" "${final_path}/data" +sudo cp -a "$tmpdir/data/" "${final_path}/data/" sudo rm -Rf "$tmpdir" #=================================================