Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.28 KB

README.md

File metadata and controls

39 lines (23 loc) · 1.28 KB

This repo is used to host the Magento CE to OpenMage migration script.

Usage

$ curl -fsSL https://migrate.openmage.org | sh

Maintainers

To update for a new release do the following:

  • Run create-patches.sh to generate and upload new patches
  • Edit migrate.sh to update the stable= variable
  • Commit and push the changes

Prerequisites

In order to upload the generated patch files to S3, AWS CLI v2 needs to be installed:

https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html

Generating patch files

Before running the next script configure the AWS CLI:

$ aws configure set region eu-central-1 --profile openmage.migrationpatches
$ aws configure set aws_access_key_id ACCESS_KEY_HERE --profile openmage.migrationpatches
$ aws configure set aws_secret_access_key SECRET_KEY_HERE --profile openmage.migrationpatches

To generate patch files for a new version just run the script from the repo root directory and follow the prompt:

$ bash ./create-patches.sh

Updating migrate script

To help track bugs, when the script is updated always do the following as well in a separate follow-up commit:

$ sed "s/SCRIPT_COMMIT_SHA_HERE/$(git log -1 --format=%H)/" migrate.sh > index.html
$ git commit -am "Update script hash."
$ git push