Skip to content
This repository was archived by the owner on Jul 22, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions bin/mage-ci
Original file line number Diff line number Diff line change
Expand Up @@ -369,12 +369,6 @@ install_magento ()
exit 1
fi

if [ ! -d "$magento_dir" ]
then
echo "${MAGECIF[2]}Creating Magento directory: $magento_dir ...${MAGECIF[0]}"
mkdir -p "$magento_dir"
fi

if [[ ! $version =~ ^[a-z0-9.\-]+$ ]]
then
echo "${MAGECIF[3]}Version should be specified: $version${MAGECIF[0]}"
Expand Down Expand Up @@ -451,11 +445,13 @@ install_magento ()

if [[ $no_download == "0" ]]
then
echo "${MAGECIF[2]}Downloading Magento from URL: http://www.magentocommerce.com/downloads/assets/$version/magento-$version.tar.gz${MAGECIF[0]}"
wget -q --no-clobber -P $download_dir http://www.magentocommerce.com/downloads/assets/$version/magento-$version.tar.gz
echo "${MAGECIF[2]}Downloading Magento from URL: https://github.com/OpenMage/magento-mirror/archive/$version.zip${MAGECIF[0]}"
wget -q --no-clobber -P $download_dir https://github.com/OpenMage/magento-mirror/archive/$version.zip
check_error_exit;
echo "${MAGECIF[2]}Unpacking magento installment...${MAGECIF[0]}"
tar -zxf $download_dir/magento-$version.tar.gz -C $magento_dir --strip=1 magento
unzip -qq $download_dir/$version.zip
mkdir -p $(dirname $magento_dir)
mv magento-mirror-$version $magento_dir
# Special case for PHP5.4 with installation process
echo "${MAGECIF[2]}Applying pdo_mysql check fix...${MAGECIF[0]}"
config_file="${magento_dir}/app/code/core/Mage/Install/etc/config.xml"
Expand Down