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/"