diff --git a/manifest.toml b/manifest.toml index 8e3805f..fbf16be 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"