1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/traccar_ynh.git synced 2024-09-03 20:35:56 +02:00

Fix compatibility for Bookworm

This commit is contained in:
Thomas 2024-04-29 21:14:29 +02:00 committed by GitHub
parent 9b53734968
commit b91e62f747
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,7 +69,15 @@ ram.runtime = "50M"
[resources.ports] [resources.ports]
[resources.apt] [resources.apt]
packages = "postgresql, openjdk-11-jre-headless" packages = "postgresql"
packages_from_raw_bash = """
if [[ $YNH_DEBIAN_VERSION == "bullseye" ]]; then
echo "openjdk-11-jre-headless";
elif [[ $YNH_DEBIAN_VERSION == "bookworm" ]]; then
echo "openjdk-17-jre-headless";
fi
"""
[resources.database] [resources.database]
type = "postgresql" type = "postgresql"