Skip to content

Instantly share code, notes, and snippets.

@matthewhaworth
Last active January 1, 2016 06:09
Show Gist options
  • Select an option

  • Save matthewhaworth/bfc300ecb5a75618d0d5 to your computer and use it in GitHub Desktop.

Select an option

Save matthewhaworth/bfc300ecb5a75618d0d5 to your computer and use it in GitHub Desktop.
Magento Install Script
#!/bin/sh
MAGENTO_VERSION=1.7.0.2
MAGENTO_VERSION_RAW=$(echo $MAGENTO_VERSION | tr -d '.')
TARGET_PATH=/var/www/projects/app55/magento$MAGENTO_VERSION
TEMP_MAGE_PATH=/tmp/mage$(date +"%s").tar.gz
wget http://www.magentocommerce.com/downloads/assets/$MAGENTO_VERSION/magento-$MAGENTO_VERSION.tar.gz -O $TEMP_MAGE_PATH
tar -C $TARGET_PATH -xvf $TEMP_MAGE_PATH
rm -rf $TEMP_MAGE_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment