From a37d684ee746700509078a275cafecabe90d900e Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 29 Apr 2024 18:47:36 +0200 Subject: [PATCH] make bookworm compatible --- manifest.toml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/manifest.toml b/manifest.toml index 1361e92..b7da6ea 100644 --- a/manifest.toml +++ b/manifest.toml @@ -51,7 +51,14 @@ ram.runtime = "50M" main.allowed = "admins" [resources.apt] - packages = ["openjdk-11-jdk", "postgresql"] - + packages = [ "postgresql"] + 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 + """ + [resources.database] type = "postgresql"