This repo is used to host the Magento CE to OpenMage migration script.
$ curl -fsSL https://migrate.openmage.org | sh
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
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
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
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