-
-
Save hmert/733939 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 -xe | |
echo "deb http://archive.canonical.com/ lucid partner">>/etc/apt/sources.list | |
apt-get update | |
sudo apt-get -y install sun-java6-jdk | |
update-java-alternatives -s java-6-sun | |
sudo apt-get install scala mysql-server mysql-client libmysql-java git-core | |
sudo groupadd etherpad | |
sudo useradd -g etherpad etherpad | |
mkdir -p /home/etherpad | |
cd /home/etherpad | |
git clone http://github.com/ether/pad.git | |
cd pad | |
echo " | |
export JAVA_HOME=/usr/lib/jvm/java-6-sun | |
export JAVA=$JAVA_HOME/bin/java | |
export SCALA_HOME=/usr/share/java | |
export SCALA=/usr/bin/scala | |
export PATH=$JAVA_HOME/bin:$PATH | |
export MYSQL_CONNECTOR_JAR=/usr/share/java/mysql-connector-java.jar | |
">/etc/profile.d/etherpad | |
. /etc/profile.d/etherpad | |
sudo ./etherpad/bin/setup-mysql-db.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment