#!/bin/bash clear echo "To install Magento, you will need a blank database ready with a user assigned to it." echo -n "Database Host (usually localhost): " read dbhost echo -n "Database Name: " read dbname echo -n "Database User: " read dbuser echo -n "Database Password: " read dbpass echo -n "Store URL: " read url echo -n "Admin Username: " read adminuser echo -n "Admin Password: " read adminpass [...] echo "Downloading and extracting packages ..." wget http://www.magentocommerce.com/downloads/assets/1.4.1.1/magento-1.4.1.1.tar.gz wget http://www.magentocommerce.com/downloads/assets/1.2.0/magento-sample-data-1.2.0.tar.gz tar -zxvf magento-1.4.1.1.tar.gz tar -zxvf magento-sample-data-1.2.0.tar.gz [...] echo "Importing sample products ..." mysql -h $dbhost -u $dbuser -p$dbpass $dbname < data.sql [...] echo "Installing Magento ..." php-cli -f install.php -- \ --license_agreement_accepted "yes" \ --db_host "$dbhost" \ --db_name "$dbname" \ --db_user "$dbuser" \ --db_pass "$dbpass" \ [...] echo "Finished installing Magento"