forked from OpenMage/migrate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
65 lines (54 loc) · 1.52 KB
/
index.html
File metadata and controls
65 lines (54 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
set -e
# OpenMage LTS migration script (for Magento CE only)
#
# See https://www.openmage.org/magento-lts/migration-guide.html for full instructions.
#
# This script is meant for quick and easy install via:
# $ curl -fsSL https://migrate.openmage.org | sh
SCRIPT_COMMIT_SHA="cfee947b85bcd041a0a23ddf9ddf71e70b282259"
nightly=1.9.4.x
_nightly=nightly
stable=v20.0.0
_stable=$stable
# The channel to install from:
# * nightly
# * test
# * stable
# * edge (deprecated)
DEFAULT_CHANNEL_VALUE="stable"
if [ -z "$CHANNEL" ]; then
CHANNEL=$DEFAULT_CHANNEL_VALUE
fi
DEFAULT_DOWNLOAD_URL="https://migrate.openmage.org"
if [ -z "$DOWNLOAD_URL" ]; then
DOWNLOAD_URL=$DEFAULT_DOWNLOAD_URL
fi
DRY_RUN=${DRY_RUN:-}
command_exists() {
command -v "$@" > /dev/null 2>&1
}
is_dry_run() {
if [ -z "$DRY_RUN" ]; then
return 1
else
return 0
fi
}
do_install() {
echo "# Executing OpenMage migrate script..."
case "$(grep '$_currentEdition' app/Mage.php | awk '{print $5}' | sed 's/self:://' | sed 's/;//')" in
EDITION_COMMUNITY)
installed=$(grep -A 8 'function getVersionInfo' app/Mage.php | tail -n 6 | awk '{print $3}' | sed "s/[',]//g" | grep -v '^$' | paste -sd '.' -)
echo "Detected that you have installed Magento Commuinity Edition $installed"
;;
*)
echo "We're sorry, but the edition you have installed is not supported by this migration script."
exit 1
;;
esac
# TODO
}
# wrapped up in a function so that we have some protection against only getting
# half the file during "curl | sh"
do_install