-
-
Save cudevmaxwell/947a5087defa2ce559b3 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
#!/usr/bin/env bash | |
echo "Installing Java and Tomcat..." | |
yum -y install java tomcat | |
echo "Installing Fedora 4..." | |
mkdir -p /var/fedora4/fedora-data | |
chown -R tomcat:tomcat /var/fedora4 | |
wget -q http://repo1.maven.org/maven2/org/fcrepo/fcrepo-webapp/4.0.0/fcrepo-webapp-4.0.0.war -O /usr/share/tomcat/webapps/fcrepo.war | |
grep -q -F 'JAVA_OPTS="-Dfcrepo.home=/var/fedora4/fedora-data"' /etc/tomcat/tomcat.conf || echo 'JAVA_OPTS="-Dfcrepo.home=/var/fedora4/fedora-data"' >> /etc/tomcat/tomcat.conf | |
echo "Installing Message Consumer" | |
wget -q http://repo1.maven.org/maven2/org/fcrepo/fcrepo-message-consumer-webapp/4.0.0/fcrepo-message-consumer-webapp-4.0.0.war -O /usr/share/tomcat/webapps/fcrepo-message-consumer.war | |
echo "Installing Sesame" | |
wget -q http://sourceforge.net/projects/sesame/files/Sesame%202/2.7.14/openrdf-sesame-2.7.14-sdk.tar.gz -O /tmp/openrdf-sesame.tar.gz | |
tar xvfz /tmp/openrdf-sesame.tar.gz -C /tmp/ | |
cp /tmp/openrdf-sesame-*/war/*.war /usr/share/tomcat/webapps | |
systemctl enable tomcat.service | |
systemctl restart tomcat.service | |
echo "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment