Merge pull request #27 from sposs/patch-1

Bug fix on platforms not MacOS
This commit is contained in:
Imran Iqbal 2020-08-10 14:28:56 +01:00 committed by GitHub
commit 09f1a26b52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
{%- if grains.os == 'MacOS' %}
{%- set rootuser = salt['cmd.run']("stat -f '%Su' /dev/console") %}
{%- else %}
{%- set rootuser == 'root' %}
{%- set rootuser = 'root' %}
{%- endif %}
{% set defaults = {