check for absolute file_paths for maps

This commit is contained in:
Florian Ermisch 2017-08-24 12:52:06 +02:00 committed by Wurzel Kollektiv
parent d51f60647a
commit 136e02a61c

View File

@ -72,6 +72,9 @@ postfix_alias_absent_{{ user }}:
{%- else %}
{%- set file_type = default_database_type %}
{%- endif %}
{%- if not file_path.startswith('/') %}
{%- set file_path = postfix.config_path ~ '/' ~ file_path %}
{%- endif %}
{%- if file_type in ("btree", "cdb", "dbm", "hash", "sdbm") %}
{%- set need_postmap = True %}
{%- endif %}