mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-20 21:31:32 +00:00
Set Jinja2 template folder to absolute path
This commit is contained in:
@@ -31,7 +31,7 @@ class Bootstrap(BootstrapBase):
|
||||
|
||||
# Setup Jinja2 Environment and load vars
|
||||
self.env = Environment(
|
||||
loader=FileSystemLoader('./etc/clamav/config_templates'),
|
||||
loader=FileSystemLoader('/etc/clamav/config_templates'),
|
||||
keep_trailing_newline=True,
|
||||
lstrip_blocks=True,
|
||||
trim_blocks=True
|
||||
|
||||
@@ -30,7 +30,7 @@ class Bootstrap(BootstrapBase):
|
||||
|
||||
# Setup Jinja2 Environment and load vars
|
||||
self.env = Environment(
|
||||
loader=FileSystemLoader('./etc/dovecot/config_templates'),
|
||||
loader=FileSystemLoader('/etc/dovecot/config_templates'),
|
||||
keep_trailing_newline=True,
|
||||
lstrip_blocks=True,
|
||||
trim_blocks=True
|
||||
|
||||
@@ -30,7 +30,7 @@ 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/config_templates'),
|
||||
keep_trailing_newline=True,
|
||||
lstrip_blocks=True,
|
||||
trim_blocks=True
|
||||
|
||||
@@ -22,7 +22,7 @@ class Bootstrap(BootstrapBase):
|
||||
|
||||
# Setup Jinja2 Environment and load vars
|
||||
self.env = Environment(
|
||||
loader=FileSystemLoader('./etc/nginx/conf.d/config_templates'),
|
||||
loader=FileSystemLoader('/etc/nginx/conf.d/config_templates'),
|
||||
keep_trailing_newline=True,
|
||||
lstrip_blocks=True,
|
||||
trim_blocks=True
|
||||
|
||||
@@ -17,7 +17,7 @@ class Bootstrap(BootstrapBase):
|
||||
|
||||
# Setup Jinja2 Environment and load vars
|
||||
self.env = Environment(
|
||||
loader=FileSystemLoader('./opt/postfix/conf/config_templates'),
|
||||
loader=FileSystemLoader('/opt/postfix/conf/config_templates'),
|
||||
keep_trailing_newline=True,
|
||||
lstrip_blocks=True,
|
||||
trim_blocks=True
|
||||
|
||||
@@ -60,7 +60,7 @@ class Bootstrap(BootstrapBase):
|
||||
|
||||
# Setup Jinja2 Environment and load vars
|
||||
self.env = Environment(
|
||||
loader=FileSystemLoader('./etc/rspamd/config_templates'),
|
||||
loader=FileSystemLoader('/etc/rspamd/config_templates'),
|
||||
keep_trailing_newline=True,
|
||||
lstrip_blocks=True,
|
||||
trim_blocks=True
|
||||
|
||||
@@ -27,7 +27,7 @@ class Bootstrap(BootstrapBase):
|
||||
|
||||
# Setup Jinja2 Environment and load vars
|
||||
self.env = Environment(
|
||||
loader=FileSystemLoader("./etc/sogo/config_templates"),
|
||||
loader=FileSystemLoader("/etc/sogo/config_templates"),
|
||||
keep_trailing_newline=True,
|
||||
lstrip_blocks=True,
|
||||
trim_blocks=True
|
||||
|
||||
Reference in New Issue
Block a user