diff --git a/software/ors-amarisoft/buildout.hash.cfg b/software/ors-amarisoft/buildout.hash.cfg index 14119da6ebac4f81565718da7a845a8293f050d4..820e4fe04cac9eb4f848bbbdcf85bc499026c4a7 100644 --- a/software/ors-amarisoft/buildout.hash.cfg +++ b/software/ors-amarisoft/buildout.hash.cfg @@ -16,7 +16,7 @@ [template] filename = instance.cfg -md5sum = 61e9685d6aa973ae0c45c45ca357458a +md5sum = b457f582aa7fd5c0773c94bea4b58b49 [amarisoft-stats.jinja2.py] _update_hash_filename_ = amarisoft-stats.jinja2.py diff --git a/software/ors-amarisoft/instance.cfg b/software/ors-amarisoft/instance.cfg index fd4b75e67139196bb8f87ac96c03d45f979f5079..fed5878b661a670020516c5f95ff943dc569fb96 100644 --- a/software/ors-amarisoft/instance.cfg +++ b/software/ors-amarisoft/instance.cfg @@ -31,8 +31,8 @@ context = [amarisoft] recipe = slapos.recipe.build init = - import os - lte_version = "2021-09-18" + import os, re + lte_version = sorted(filter(lambda x: re.match(r"v[0-9]{4}-[0-9]{2}-[0-9]{2}", x), os.listdir('/opt/amarisoft')))[-1][1:] path = "/opt/amarisoft/v" + lte_version options['lte-version'] = lte_version options['path'] = path