-
Notifications
You must be signed in to change notification settings - Fork 6
/
install-3rdparty.sh
executable file
·24 lines (20 loc) · 1.03 KB
/
install-3rdparty.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
set -e
# install flyway
FLYWAY_VERSION=3.2.1
curl -o flyway.tgz http://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/${FLYWAY_VERSION}/flyway-commandline-${FLYWAY_VERSION}.tar.gz
tar -xzf flyway.tgz
mv flyway-${FLYWAY_VERSION} /opt/flyway
mv -f flyway.conf /opt/flyway/conf/flyway.conf
chmod +x /opt/flyway/flyway
ln -s /opt/flyway/flyway /usr/local/bin/flyway
# install greenmail webapp to provide simple smtp service for the self-administration and administration
curl -o greenmail.war http://central.maven.org/maven2/com/icegreen/greenmail-webapp/1.4.1/greenmail-webapp-1.4.1.war
unzip greenmail.war -d /var/lib/tomcat8/webapps/greenmail
sed -i 's/127.0.0.1/0.0.0.0/g' /var/lib/tomcat8/webapps/greenmail/WEB-INF/web.xml
# install maven
MAVEN_VERSION=3.3.3
curl -o apache-maven.tgz ftp://ftp.fu-berlin.de/unix/www/apache/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz
tar -xzf apache-maven.tgz
mv apache-maven-${MAVEN_VERSION} /opt/apache-maven
ln -s /opt/apache-maven/bin/mvn /usr/local/bin/mvn