ctf-tools/bindead/install-root-debian
Steven Van Acker c6d1f24c57 detect xenial and act accordingly. lsb-release should be installed to
differentiate between ubuntu versions
2017-02-16 22:43:10 +01:00

11 lines
275 B
Bash
Executable file

#!/bin/bash -ex
set -eu -o pipefail
case "$(lsb_release -cs)" in
xenial)
apt-get -o Dpkg::Options::="--force-overwrite" -y install maven libprotobuf-dev openjdk-9-jre openjdk-9-jdk
;;
*)
apt-get -y install maven libprotobuf-dev openjdk-7-jre openjdk-7-jdk
;;
esac