include options use absolute paths
Configuration includes needs an absolute path, at least on Debian. Relative paths are ignored. As the include files are copied to {{ samba_configuration_dir }}, I suggest to prefix the corresponding includes in the template with the same path.
This commit is contained in:
parent
50c6d5ba69
commit
d2b24a68e5
@ -79,7 +79,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if samba_global_include is defined %}
|
{% if samba_global_include is defined %}
|
||||||
include = {{ samba_global_include }}
|
include = {{ samba_configuration_dir }}/{{ samba_global_include }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if samba_load_homes %}
|
{% if samba_load_homes %}
|
||||||
@ -91,7 +91,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if samba_home_include is defined %}
|
{% if samba_home_include is defined %}
|
||||||
include = {{ samba_home_include }}
|
include = {{{ samba_configuration_dir }}/{ samba_home_include }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if samba_shares|length > 0 %}
|
{% if samba_shares|length > 0 %}
|
||||||
@ -138,7 +138,7 @@
|
|||||||
directory mode = {{ share.directory_mode|default('0775') }}
|
directory mode = {{ share.directory_mode|default('0775') }}
|
||||||
force directory mode = {{ share.force_directory_mode|default('0775') }}
|
force directory mode = {{ share.force_directory_mode|default('0775') }}
|
||||||
{% if share.include_file is defined %}
|
{% if share.include_file is defined %}
|
||||||
include = {{ share.include_file }}
|
include = {{ samba_configuration_dir }}/{{ share.include_file }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user