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:
parent
dbff83050b
commit
2a5642a76d
@ -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)
|
||||
|
||||
|
@ -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 %}
|
||||
|
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user