From f53585b566e976a29e87fc3b57cfec9f41823fe0 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Fri, 8 Jun 2018 00:58:54 +0530 Subject: [PATCH] mkdir /user/plugins in tmp --- scripts/upgrade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 109b01e..224533b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -60,8 +60,9 @@ path_url=$(ynh_normalize_url_path $path_url) # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= # Download, check integrity, uncompress and patch the source from app.src -# Create a temporary directory +# Create a temporary directory along with /user/plugin sub directory in it tmpdir="$(mktemp -d)" +mkdir -p "$tmpdir/user/plugins" # Backup the app files in the temp dir sudo cp -a "$final_path/index.php" "$tmpdir"