Skip to content

Instantly share code, notes, and snippets.

@larubbio
Created January 30, 2012 18:03
Show Gist options
  • Save larubbio/1705702 to your computer and use it in GitHub Desktop.
Save larubbio/1705702 to your computer and use it in GitHub Desktop.
Motech download and install
#!/bin/bash
apt-get install make gcc zlib1g-dev libssl-dev rake
cd /opt
# Download the packages
if [ ! -f /opt/apache-activemq-5.5.1-bin.tar.gz ]
then
wget http://motech.github.com/files/apache-activemq-5.5.1-bin.tar.gz
tar xvzf apache-activemq-5.5.1-bin.tar.gz
ln -s apache-activemq-5.5.1 activemq
fi
# Couch doesn't provide binary downloads so we compile it.
# You are free to install it from your package manager
git clone git://github.com/iriscouch/build-couchdb
cd build-couchdb
git submodule init
git submodule update
rake git="git://git.apache.org/couchdb.git tags/1.1.1" install=/opt/apache-couchdb-1.1.1
cd /opt
ln -s apache-couchdb-1.1.1 couchdb
if [ ! -f /opt/apache-tomcat-7.0.25.tar.gz ]
then
wget http://motech.github.com/files/apache-tomcat-7.0.25.tar.gz
tar xvzf apache-tomcat-7.0.25.tar.gz
ln -s apache-tomcat-7.0.25 tomcat7
fi
# Grab the upstart scripts
cd /etc/init
if [ ! -f /etc/init/activemq.conf ]
then
wget https://raw.github.com/gist/1705727/044ae656e209e4a6809bf9c24c2ade8981820a03/activemq.conf
fi
if [ ! -f /etc/init/couchdb.conf ]
then
wget https://gist.github.com/raw/1705727/d77677a078acf779199cffccf6feaa67066a02fc/couchdb.conf
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment