summaryrefslogtreecommitdiffstats
path: root/taskcluster/docker/recipes/prepare_openjdk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'taskcluster/docker/recipes/prepare_openjdk.sh')
-rwxr-xr-xtaskcluster/docker/recipes/prepare_openjdk.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/taskcluster/docker/recipes/prepare_openjdk.sh b/taskcluster/docker/recipes/prepare_openjdk.sh
new file mode 100755
index 0000000000..828c8dc697
--- /dev/null
+++ b/taskcluster/docker/recipes/prepare_openjdk.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -x
+
+# Debian 10 doesn't have openjdk-8, so add the Debian 9 repository, which contains it.
+if grep -q ^10\\. /etc/debian_version; then
+ sed s/buster/stretch/ /etc/apt/sources.list | tee /etc/apt/sources.list.d/stretch.list
+ apt-get update
+fi