From 19e571d894da4b9c29a2781b9d7a74a24e6fbc71 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 29 Apr 2024 13:27:19 +0200 Subject: [PATCH 1/2] fix bookworm --- manifest.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/manifest.toml b/manifest.toml index efd195e..c887cc8 100644 --- a/manifest.toml +++ b/manifest.toml @@ -68,5 +68,10 @@ ram.runtime = "590M" [resources.apt] packages = [ - "openjdk-11-jre-headless" - ] + packages_from_raw_bash = """ + if [[ $YNH_DEBIAN_VERSION == "bullseye" ]]; then + echo "openjdk-11-jre"; + elif [[ $YNH_DEBIAN_VERSION == "bookworm" ]]; then + echo "openjdk-17-jre"; + fi + """] From 78a0014a83e783878ecc20ed33ecd1571ec805ed Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 29 Apr 2024 13:29:34 +0200 Subject: [PATCH 2/2] Update manifest.toml --- manifest.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/manifest.toml b/manifest.toml index c887cc8..f789599 100644 --- a/manifest.toml +++ b/manifest.toml @@ -67,11 +67,10 @@ ram.runtime = "590M" main.default = 8090 [resources.apt] - packages = [ packages_from_raw_bash = """ if [[ $YNH_DEBIAN_VERSION == "bullseye" ]]; then echo "openjdk-11-jre"; elif [[ $YNH_DEBIAN_VERSION == "bookworm" ]]; then echo "openjdk-17-jre"; fi - """] + """