diff --git a/services/git-bridge/install.sh b/services/git-bridge/install similarity index 91% rename from services/git-bridge/install.sh rename to services/git-bridge/install index 22ab2747d4..fdafe65c64 100755 --- a/services/git-bridge/install.sh +++ b/services/git-bridge/install @@ -7,7 +7,7 @@ installDeps() { return 1 } -command -v ant >/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 &&\ sudo mv ./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/ &&\ diff --git a/services/git-bridge/reinstall b/services/git-bridge/reinstall new file mode 100755 index 0000000000..e92e1e0bb2 --- /dev/null +++ b/services/git-bridge/reinstall @@ -0,0 +1,3 @@ +command -v mvn >/dev/null 2>&1 || sudo apt-get install maven2 +sudo mvn package &&\ +sudo mv ./target/writelatex-git-bridge-1.0-SNAPSHOT-jar-with-dependencies.jar /usr/local/sbin/writelatex-git-bridge.jar diff --git a/services/git-bridge/uninstall.sh b/services/git-bridge/uninstall similarity index 100% rename from services/git-bridge/uninstall.sh rename to services/git-bridge/uninstall