mirror of
https://github.com/zardus/ctf-tools
synced 2024-11-14 01:37:06 +00:00
c6d1f24c57
differentiate between ubuntu versions
12 lines
204 B
Bash
Executable file
12 lines
204 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 openjdk-9-jre
|
|
;;
|
|
*)
|
|
apt-get -y install openjdk-7-jre
|
|
;;
|
|
esac
|