1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Updated templates to support disabling cifsacl in autofs mounts

This commit is contained in:
Valery Sinelnikov 2025-03-04 14:19:13 +04:00
parent 22d0c87538
commit 316c0881a9
2 changed files with 5 additions and 5 deletions

View File

@ -19,9 +19,9 @@
{%- for drv in drives %}
{% if (drv.thisDrive != 'HIDE') %}
{% if drv.label %}
"{{ drv.label }}" {% if drv.username %}-fstype=cifs,cruid=$USER,sec=krb5,noperm,cifsacl{% else %}-fstype=cifs,cruid=$USER,sec=krb5,noperm,cifsacl,multiuser{% endif %} :{{ drv.path }}
"{{ drv.label }}" -fstype=cifs,cruid=$USER,sec=krb5,noperm{% if drv.username %}{% else %},multiuser{% endif %}{% if drv.cifsacl %},cifsacl{% endif %} :{{ drv.path }}
{% else %}
"{{ drv.dir }}" {% if drv.username %}-fstype=cifs,cruid=$USER,sec=krb5,noperm,cifsacl{% else %}-fstype=cifs,cruid=$USER,sec=krb5,noperm,cifsacl,multiuser{% endif %} :{{ drv.path }}
"{{ drv.dir }}" -fstype=cifs,cruid=$USER,sec=krb5,noperm{% if drv.username %}{% else %},multiuser{% endif %}{% if drv.cifsacl %},cifsacl{% endif %} :{{ drv.path }}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}

View File

@ -19,9 +19,9 @@
{%- for drv in drives %}
{% if (drv.thisDrive == 'HIDE') %}
{% if drv.label %}
"{{ drv.label }}" {% if drv.username %}-fstype=cifs,cruid=$USER,sec=krb5,noperm,cifsacl{% else %}-fstype=cifs,cruid=$USER,sec=krb5,noperm,cifsacl,multiuser{% endif %} :{{ drv.path }}
"{{ drv.label }}" -fstype=cifs,cruid=$USER,sec=krb5,noperm{% if drv.username %}{% else %},multiuser{% endif %}{% if drv.cifsacl %},cifsacl{% endif %} :{{ drv.path }}
{% else %}
"{{ drv.dir }}" {% if drv.username %}-fstype=cifs,cruid=$USER,sec=krb5,noperm,cifsacl{% else %}-fstype=cifs,cruid=$USER,sec=krb5,noperm,cifsacl,multiuser{% endif %} :{{ drv.path }}
"{{ drv.dir }}" -fstype=cifs,cruid=$USER,sec=krb5,noperm{% if drv.username %}{% else %},multiuser{% endif %}{% if drv.cifsacl %},cifsacl{% endif %} :{{ drv.path }}
{% endif %}
{% endif %}
{% endfor %}