Skip to content
Snippets Groups Projects
Verified Commit 7f920522 authored by Ole Binder's avatar Ole Binder
Browse files

Feat: read min liq version from yaml

parent 7f8777f3
No related branches found
No related tags found
1 merge request!17Yaml configuration file
...@@ -96,12 +96,13 @@ def get_setting(default_value, config_prop, env_var) = ...@@ -96,12 +96,13 @@ def get_setting(default_value, config_prop, env_var) =
end end
# VERSION CHECK # VERSION CHECK
liq_min_version = list.assoc(default="2.1", "liquidsoap_min_version", ini)
if if
not liquidsoap.version.at_least(liq_min_version) not liquidsoap.version.at_least(config.general.liquidsoap_min_version)
then then
print( print(
"AURA Engine Core requires at least Liquidsoap v#{liq_min_version}" "AURA Engine Core requires at least Liquidsoap v#{
config.general.liquidsoap_min_version
}"
) )
exit(1) exit(1)
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment