From 2c667277183602902d41240ff660e07cfeb68706 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Tue, 24 Jul 2018 00:32:51 +0530 Subject: [PATCH] Fix tmpdir error in upgrade script --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 7677a43..a67253f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -76,8 +76,8 @@ path_url=$(ynh_normalize_url_path $path_url) # Create a temporary directory tmpdir="$(mktemp -d)" # Backup the content folder to the temp dir -cp -ar "$final_path/ghost/content" "$tmpdir" -sudo rm -R "$tmpdir/ghost.zip" +cp -ar "$final_path/content" "$tmpdir" +sudo rm -R "$tmpdir" # Download, check integrity, uncompress and patch the source from app.src tmpdir1="$(mktemp -d)"