From 07cea769311c12f04b77a0bedf53c50fd9b7053e Mon Sep 17 00:00:00 2001 From: Winston Li Date: Fri, 5 Dec 2014 20:57:05 +0000 Subject: [PATCH] Added install-deps script. --- services/git-bridge/install-deps.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 services/git-bridge/install-deps.sh diff --git a/services/git-bridge/install-deps.sh b/services/git-bridge/install-deps.sh new file mode 100644 index 0000000000..112afbbf00 --- /dev/null +++ b/services/git-bridge/install-deps.sh @@ -0,0 +1,9 @@ +if [ "$(id -u)" != "0" ]; then + echo "You must be root to install deps" 1>&2 + exit 1 +fi +apt-get update +apt-get install ant +apt-get install openjdk-7-jdk +update-alternatives --set java /usr/lib/java-7-openjdk-amd64/jre/bin/java +update-alternatives --set javac /usr/lib/java-7-openjdk-amd64/jre/bin/javac