mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 01:51:58 -05:00
Changed maven2 to maven.
This commit is contained in:
parent
f09ed593d7
commit
41fc758dd3
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
installDeps() {
|
installDeps() {
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y maven2
|
sudo apt-get install -y maven
|
||||||
sudo apt-get install -y openjdk-7-jdk
|
sudo apt-get install -y openjdk-7-jdk
|
||||||
sudo update-alternatives --set java /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
|
sudo update-alternatives --set java /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
|
||||||
sudo update-alternatives --set javac /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/javac
|
sudo update-alternatives --set javac /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/javac
|
||||||
|
@ -8,7 +8,7 @@ installDeps() {
|
||||||
}
|
}
|
||||||
|
|
||||||
command -v mvn >/dev/null 2>&1 && command -v /usr/lib/jvm/java-7-openjdk-amd64/bin/javac >/dev/null 2>&1 || installDeps
|
command -v mvn >/dev/null 2>&1 && command -v /usr/lib/jvm/java-7-openjdk-amd64/bin/javac >/dev/null 2>&1 || installDeps
|
||||||
sudo mvn package &&\
|
mvn package &&\
|
||||||
sudo cp ./target/writelatex-git-bridge-1.0-SNAPSHOT-jar-with-dependencies.jar /usr/local/sbin/writelatex-git-bridge.jar &&\
|
sudo cp ./target/writelatex-git-bridge-1.0-SNAPSHOT-jar-with-dependencies.jar /usr/local/sbin/writelatex-git-bridge.jar &&\
|
||||||
sudo cp ./bin/wlgb /etc/init.d/ &&\
|
sudo cp ./bin/wlgb /etc/init.d/ &&\
|
||||||
sudo mkdir -p /var/log/wlgb &&\
|
sudo mkdir -p /var/log/wlgb &&\
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
command -v mvn >/dev/null 2>&1 || sudo apt-get install maven2
|
command -v mvn >/dev/null 2>&1 || sudo apt-get install maven
|
||||||
sudo mvn package &&\
|
sudo mvn package &&\
|
||||||
sudo mv ./target/writelatex-git-bridge-1.0-SNAPSHOT-jar-with-dependencies.jar /usr/local/sbin/writelatex-git-bridge.jar
|
sudo mv ./target/writelatex-git-bridge-1.0-SNAPSHOT-jar-with-dependencies.jar /usr/local/sbin/writelatex-git-bridge.jar
|
||||||
|
|
Loading…
Reference in a new issue