check for absolute `file_path`s 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
1 changed files with 3 additions and 0 deletions

View File

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