From 767d33ec8c438557fe72d621b1a6eaae2311584b Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Wed, 10 Apr 2024 23:17:00 +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 6bef867..8135a73 100644 --- a/manifest.toml +++ b/manifest.toml @@ -61,10 +61,9 @@ ram.runtime = "50M" packages = "ffmpeg, mariadb-server" 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 """