From 848fcce9788e0d048dfff86a5e7d6265f15a0c94 Mon Sep 17 00:00:00 2001 From: Bert Van Vreckem Date: Thu, 5 Nov 2015 11:13:00 +0100 Subject: [PATCH] Clean up spaces and indentation --- templates/smb.conf.j2 | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/templates/smb.conf.j2 b/templates/smb.conf.j2 index 8c825c4..4910862 100644 --- a/templates/smb.conf.j2 +++ b/templates/smb.conf.j2 @@ -46,28 +46,29 @@ {% endif %} {% if samba_shares is defined %} +## Shared directories {% for share in samba_shares %} [{{ share.name }}] - {% if share.comment is defined %} +{% if share.comment is defined %} comment = {{ share.comment }} - {% endif %} +{% endif %} path = {{ samba_shares_root }}/{{ share.name }} public = {{ share.public|default('no') }} - {% if share.valid_users is defined %} +{% if share.valid_users is defined %} valid users= {{ share.valid_users }} - {% endif %} - {% if share.write_list is defined %} +{% endif %} +{% if share.write_list is defined %} write list = {{ share.write_list }} - {% endif %} - - {% if share.group is defined %} +{% endif %} +{% if share.group is defined %} force group = {{ share.group }} - {% endif %} +{% endif %} create mask = {{ share.create_mask|default('0664') }} create mode = {{ share.create_mode|default('0664') }} force create mode = {{ share.force_create_mode|default('0664') }} directory mask = {{ share.directory_mask|default('0775') }} directory mode = {{ share.directory_mode|default('0775') }} force directory mode = {{ share.force_directory_mode|default('0775') }} + {% endfor %} {% endif%}