1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-20 21:31:32 +00:00

Add jinja2 filters urlencode and escape_quotes

This commit is contained in:
FreddleSpl0it
2025-05-31 21:48:36 +02:00
parent e8d155d7e0
commit 744aa5d137
8 changed files with 40 additions and 32 deletions

View File

@@ -45,10 +45,6 @@ class BootstrapDovecot(BootstrapBase):
"ENV_VARS": dict(os.environ)
}
self.env_vars = self.prepare_template_vars('/service_config/overwrites.json', extra_vars)
# Escape DBPASS
self.env_vars['DBPASS'] = self.env_vars['DBPASS'].replace('"', r'\"')
# Set custom filters
self.env.filters['sha1'] = self.sha1_filter
print("Set Timezone")
self.set_timezone()