From db0f9e04c787b7218eb116fbe850598d5693a7e2 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Wed, 10 Apr 2024 23:19:47 +0200 Subject: [PATCH] Update manifest.toml: simplify conditional apt dep, rely on YNH_DEBIAN_VERSION --- manifest.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index ee12f8e..7a2840f 100644 --- a/manifest.toml +++ b/manifest.toml @@ -61,10 +61,9 @@ ram.runtime = "50M" [resources.apt] packages = "ffmpeg" packages_from_raw_bash = """ - debian=$(lsb_release --codename --short) - if [[ $debian = "bullseye" ]]; then + if [[ $YNH_DEBIAN_VERSION == "bullseye" ]]; then echo "openjdk-11-jre"; - elif [[ $debian = "bookworm" ]]; then + elif [[ $YNH_DEBIAN_VERSION == "bookworm" ]]; then echo "openjdk-17-jre"; fi """