From 4f94622753ba10dbb9b1ed9578bf049112d4814f Mon Sep 17 00:00:00 2001 From: tituspijean Date: Wed, 10 Apr 2024 23:22:51 +0200 Subject: [PATCH] Support bookworm: use OpenJDK 17 --- manifest.toml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 44ebb02..dc8b539 100644 --- a/manifest.toml +++ b/manifest.toml @@ -55,7 +55,17 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "postgresql openjdk-11-jre-headless apt-transport-https" + packages = [ + "postgresql", + "apt-transport-https" + ] + 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"