Created
June 26, 2012 00:48
-
-
Save coop/2992377 to your computer and use it in GitHub Desktop.
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/sh | |
if ! [ `which brew` > /dev/null ]; then | |
echo "Installing Homebrew" >&2 | |
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)" | |
fi | |
PACKAGES=( redis memcached rabbitmq mysql imagemagick ) | |
for PACKAGE in ${PACKAGES[@]} | |
do | |
if ! [ `brew list | grep $PACKAGE` > /dev/null ]; then | |
echo "Installing $PACKAGE" >&2 | |
brew install $PACKAGE | |
fi | |
done | |
PACKAGE_CONFIGS=( 'database' 'redis' 'paperclip', 'amqp' ) | |
for CONFIG in ${PACKAGE_CONFIGS[@]} | |
do | |
if ! [ -f "config/$CONFIG.yml" ]; then | |
echo "Copying $CONFIG.yml" >&2 | |
cp "config/$CONFIG.yml.example" "config/$CONFIG.yml" | |
fi | |
done | |
echo "Finished bootstrapping Passport" >&2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment