From 4e5d6b455b4cc88121d38e91be8ccbe40ab739ff Mon Sep 17 00:00:00 2001 From: anmol26s Date: Sun, 17 Jun 2018 19:28:36 +0530 Subject: [PATCH] Fixed upgrade and restore --- scripts/restore | 4 ---- scripts/upgrade | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/restore b/scripts/restore index 2fb2a31..a76dec7 100755 --- a/scripts/restore +++ b/scripts/restore @@ -74,10 +74,6 @@ ynh_mysql_connect_as $db_name $db_pwd $db_name < ./db.sql ynh_restore_file "$final_path" -exec_composer "$final_path" update --quiet --no-scripts --no-dev -exec_composer "$final_path" update --quiet --no-dev - - #================================================= # RECREATE THE DEDICATED USER #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index c3e7ceb..b1d3d78 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -74,6 +74,8 @@ tmpdir="$(mktemp -d)" # Backup the config file in the temp dir mkdir -p "$tmpdir/storage/upload" mkdir -p "$tmpdir/storage/export" +mkdir -p "$final_path/storage/upload" +mkdir -p "$final_path/storage/export" cp -a "$final_path/.env" "$tmpdir/.env" cp -a "$final_path/storage/upload/*" "$tmpdir/storage/upload/" cp -a "$final_path/storage/export/*" "$tmpdir/storage/export/"