mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-11-27 22:38:10 +01:00
parent
ef1bc02a86
commit
69d598138e
@ -20,7 +20,7 @@
|
||||
{%- set rootuser = salt['cmd.run']("stat -f '%Su' /dev/console") %}
|
||||
{%- set rootgroup = salt['cmd.run']("stat -f '%Sg' /dev/console") %}
|
||||
{%- elif grains.os_family == 'Windows' %}
|
||||
{%- set rootuser = salt['cmd.run']("id -un") %}
|
||||
{%- set rootuser = salt['cmd.run']("whoami").split("\\")[1] %}
|
||||
{%- endif %}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user