Skip to content
This repository has been archived by the owner on Oct 16, 2019. It is now read-only.

Added modman installation #17

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
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
21 changes: 17 additions & 4 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ DATA_VERSION="1.9.0.0"

# Install Apache & PHP
# --------------------
apt-get update -y
apt-get install -y git
apt-get install -y apache2
apt-get install -y php5
apt-get install -y libapache2-mod-php5
Expand Down Expand Up @@ -95,7 +97,7 @@ fi
# Run installer
if [ ! -f "/vagrant/httpdocs/app/etc/local.xml" ]; then
cd /vagrant/httpdocs
sudo /usr/bin/php -f install.php -- --license_agreement_accepted yes \
/usr/bin/php -f install.php -- --license_agreement_accepted yes \
--locale en_US --timezone "America/Los_Angeles" --default_currency USD \
--db_host localhost --db_name magentodb --db_user magentouser --db_pass password \
--url "http://127.0.0.1:8080/" --use_rewrites yes \
Expand All @@ -106,9 +108,20 @@ if [ ! -f "/vagrant/httpdocs/app/etc/local.xml" ]; then
/usr/bin/php -f shell/indexer.php reindexall
fi

# Install n98-magerun
# Install n98-magerun and its bash-completion
# --------------------
cd /vagrant/httpdocs
wget https://raw.github.com/netz98/n98-magerun/master/n98-magerun.phar
wget "https://raw.githubusercontent.com/netz98/n98-magerun/master/n98-magerun.phar"
wget "https://raw.githubusercontent.com/netz98/n98-magerun/master/autocompletion/bash/bash_complete" -O "magerun-bash-completion"
chmod +x ./n98-magerun.phar
sudo mv ./n98-magerun.phar /usr/local/bin/
mv ./n98-magerun.phar /usr/local/bin/
mv ./magerun-bash-completion /etc/bash_completion.d/n98-magerun.phar
n98-magerun.phar dev:symlinks --on --global

# Install modman and its bash-completion
# --------------------
wget "https://raw.githubusercontent.com/colinmollenhour/modman/master/modman"
wget "https://raw.githubusercontent.com/colinmollenhour/modman/master/bash_completion" -O "modman-bash-completion"
chmod +x ./modman
mv ./modman /usr/local/bin/
mv ./modman-bash-completion /etc/bash_completion.d/modman