1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/streama_ynh.git synced 2024-09-03 20:26:30 +02:00

Update manifest.toml: simplify conditional apt dep, rely on YNH_DEBIAN_VERSION

This commit is contained in:
Alexandre Aubin 2024-04-10 23:17:00 +02:00 committed by GitHub
parent 17729fcb1b
commit 767d33ec8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
"""