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"