From 7b5a4e2803f2bb3aba952a72072a21e3318d9309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 18 Jul 2023 12:18:33 +0200 Subject: [PATCH] Update manifest.toml Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> --- manifest.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 399dabb..96a7ac8 100644 --- a/manifest.toml +++ b/manifest.toml @@ -60,4 +60,12 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "openjdk-11-jre ffmpeg" + packages = "ffmpeg" + packages_from_raw_bash = """ + debian=$(lsb_release --codename --short) + if [[ $debian = "bullseye" ]]; then + echo "openjdk-11-jre"; + elif [[ $debian = "bookworm" ]]; then + echo "openjdk-17-jre"; + fi + """