From b91e62f747cf88288bbcbde8bdffe506f1442a1e Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 29 Apr 2024 21:14:29 +0200 Subject: [PATCH] Fix compatibility for Bookworm --- manifest.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index a178f4d..7c115f3 100644 --- a/manifest.toml +++ b/manifest.toml @@ -69,7 +69,15 @@ ram.runtime = "50M" [resources.ports] [resources.apt] - packages = "postgresql, openjdk-11-jre-headless" + packages = "postgresql" + + packages_from_raw_bash = """ + if [[ $YNH_DEBIAN_VERSION == "bullseye" ]]; then + echo "openjdk-11-jre-headless"; + elif [[ $YNH_DEBIAN_VERSION == "bookworm" ]]; then + echo "openjdk-17-jre-headless"; + fi + """ [resources.database] type = "postgresql"