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

Added multiuser for machine templates

This commit is contained in:
Valery Sinelnikov 2025-01-21 13:14:45 +04:00
parent dbff83050b
commit 2a5642a76d
3 changed files with 5 additions and 4 deletions

View File

@ -301,6 +301,7 @@ class cifs_applier_user(applier_frontend):
drive_settings['label'] = remove_escaped_quotes(drv.label)
drive_settings['persistent'] = drv.persistent
drive_settings['useLetter'] = drv.useLetter
drive_settings['username'] = self.username
drive_list.append(drive_settings)

View File

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

View File

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