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:
parent
cf67e2f9c5
commit
db0f9e04c7
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue