Created
November 18, 2017 14:10
-
-
Save redlotus/f1450f5a7dacef3e2a2638082bf0a7d3 to your computer and use it in GitHub Desktop.
pentaho installer
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
#!/usr/bin/sh | |
# prepare tomcat | |
apt-get update && | |
apt-get install default-jdk && | |
groupadd tomcat && | |
sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat && | |
cd /tmp && | |
curl -O http://apache.mirrors.ionfish.org/tomcat/tomcat-8/v8.5.23/bin/apache-tomcat-8.5.23.tar.gz && | |
mkdir /opt/tomcat && | |
tar xzvf apache-tomcat-8*tar.gz -C /opt/tomcat --strip-components=1 && | |
cd /opt/tomcat && | |
chgrp -R tomcat /opt/tomcat && | |
chmod -R g+r conf && | |
chmod g+x conf && | |
chown -R tomcat webapps/ work/ temp/ logs/ && | |
cp ./tomcat.service /etc/systemd/system/tomcat.service && | |
systemctl daemon-reload && | |
systemctl start tomcat && | |
systemctl enable tomcat && | |
# time to install pentaho | |
cd /opt/tomcat/webapps/ && | |
curl -O http://cloud1.willowit.com.au/dist/pentaho-reports-for-openerp.war && | |
chown tomcat:tomcat pentaho-reports-for-openerp.war && | |
chmod g+r pentaho-reports-for-openerp.war && | |
systemctl restart tomcat && |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment