Skip to content

Commit

Permalink
fix(windows): change id to whoami (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin authored Sep 8, 2021
1 parent aaedb00 commit c0780ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{%- set rootuser = salt['cmd.run']("stat -f '%Su' /dev/console") %}
{%- set rootgroup = salt['cmd.run']("stat -f '%Sg' /dev/console") %}
{%- elif grains.os == 'Windows' %}
{%- set rootuser = salt['cmd.run']("id -un") %}
{%- set rootuser = salt['cmd.run']("whoami").split("\\")[1] %}
{%- endif %}

Arch:
Expand Down

0 comments on commit c0780ad

Please sign in to comment.