Skip to content

Commit

Permalink
Only set the 'browseable' parameter if browseable is set to 'no'
Browse files Browse the repository at this point in the history
  • Loading branch information
tdltdc committed Dec 19, 2023
1 parent d1ba690 commit f8a3ae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/server/templates/smb.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@
{% if share.guest_ok is defined and share.guest_ok %}
guest ok = {{ share.guest_ok }}
{% endif %}
{% if share.browsable is defined and share.browsable %}
{% if share.browsable is defined and not share.browsable %}
browsable = {{ share.browsable | ternary('yes', 'no') }}
{% endif %}
{% if share.browseable is defined and share.browseable %}
{% if share.browseable is defined and not share.browseable %}
browseable = {{ share.browseable | ternary('yes', 'no') }}
{% endif %}
{% if share.writable is defined and share.writable %}
Expand Down

0 comments on commit f8a3ae0

Please sign in to comment.