mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-20 05:11:30 +00:00
Add support for custom_templates folder to override Jinja2 templates
This commit is contained in:
@@ -30,7 +30,10 @@ class Bootstrap(BootstrapBase):
|
||||
|
||||
# Setup Jinja2 Environment and load vars
|
||||
self.env = Environment(
|
||||
loader=FileSystemLoader('/etc/mysql/conf.d/config_templates'),
|
||||
loader=FileSystemLoader([
|
||||
'/etc/mysql/conf.d/custom_templates',
|
||||
'/etc/mysql/conf.d/config_templates'
|
||||
]),
|
||||
keep_trailing_newline=True,
|
||||
lstrip_blocks=True,
|
||||
trim_blocks=True
|
||||
|
||||
Reference in New Issue
Block a user