diff --git a/setup/flavors/compose/docker-compose.yml b/setup/flavors/compose/docker-compose.yml index 3d84e595..4cebdc2c 100644 --- a/setup/flavors/compose/docker-compose.yml +++ b/setup/flavors/compose/docker-compose.yml @@ -1,6 +1,7 @@ {% set env='mailu.env' %} # This file is auto-generated by the Mailu configuration wizard. # Please read the documentation before attempting any change. +# Generated for {{ flavor }} flavor version: '3.6' diff --git a/setup/flavors/compose/mailu.env b/setup/flavors/compose/mailu.env index fba5bee8..dc788bea 100644 --- a/setup/flavors/compose/mailu.env +++ b/setup/flavors/compose/mailu.env @@ -1,5 +1,7 @@ # Mailu main configuration file # +# Generated for {{ flavor }} flavor +# # This file is autogenerated by the configuration management wizard. # For a detailed list of configuration variables, see the documentation at # https://mailu.io diff --git a/setup/flavors/stack/docker-compose.yml b/setup/flavors/stack/docker-compose.yml index 3f56d571..f27b661f 100644 --- a/setup/flavors/stack/docker-compose.yml +++ b/setup/flavors/stack/docker-compose.yml @@ -1,3 +1,8 @@ +{% set env='mailu.env' %} +# This file is auto-generated by the Mailu configuration wizard. +# Please read the documentation before attempting any change. +# Generated for {{ flavor }} flavor + version: '3.6' services: diff --git a/setup/server.py b/setup/server.py index 4e29fe9e..7818e662 100644 --- a/setup/server.py +++ b/setup/server.py @@ -68,7 +68,8 @@ def build_app(path): @bp.route("/submit_flavor", methods=["POST"]) def submit_flavor(): data = flask.request.form.copy() - return flask.render_template('wizard.html', flavor=data["flavor"]) + flavor_files = sorted(os.listdir(path + "/" + version + "/templates/steps/" + data["flavor"])) + return flask.render_template('wizard.html', flavor=data["flavor"], flavor_files=flavor_files) @bp.route("/submit", methods=["POST"]) def submit(): diff --git a/setup/templates/base.html b/setup/templates/base.html index d40a4880..5be0b1eb 100644 --- a/setup/templates/base.html +++ b/setup/templates/base.html @@ -8,7 +8,7 @@
Version -