Created
July 18, 2014 12:04
-
-
Save marjanbonus/b5a8fd870dc7157fc7a4 to your computer and use it in GitHub Desktop.
Magento & Waterlee boilerplate auto install via ssh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Magento & Waterlee boilerplate auto install (auto prepare for web-based installation process) | |
# Just change in script mysql username and password and that's it | |
# This is a script with two parameters, first for magento folder name and second for database name | |
# Simply run in command-line with './mage-script.sh folder_name database_name' | |
clear | |
echo "Magento&Waterlee auto install." | |
wget http://www.magentocommerce.com/downloads/assets/1.9.0.1/magento-1.9.0.1.tar.gz | |
tar -zxvf magento-1.9.0.1.tar.gz | |
mv magento $1 | |
cd $1 | |
chmod -R o+w media var | |
chmod o+w app/etc | |
git init | |
git remote add origin https://github.com/zeljkoprsa/waterlee-boilerplate.git | |
git pull origin master | |
mysql -u username -ppassword -e "create database $2;" | |
echo "Magento&Waterlee prepared for web-based installation process in folder '$1' with database name '$2'" | |
rm ../magento-1.9.0.1.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment