overleaf/services/git-bridge/install-deps.sh

10 lines
317 B
Bash
Raw Normal View History

2014-12-05 20:57:05 +00:00
if [ "$(id -u)" != "0" ]; then
echo "You must be root to install deps" 1>&2
exit 1
fi
apt-get update
2014-12-05 21:10:07 +00:00
apt-get install -y ant
apt-get install -y openjdk-7-jdk
update-alternatives --set java /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
update-alternatives --set javac /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/javac