diff --git a/manifest.toml b/manifest.toml index efd195e..f789599 100644 --- a/manifest.toml +++ b/manifest.toml @@ -67,6 +67,10 @@ ram.runtime = "590M" main.default = 8090 [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 + """