1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/airsonic_ynh.git synced 2024-09-03 18:06:14 +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:19:47 +02:00 committed by GitHub
parent cf67e2f9c5
commit db0f9e04c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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