mirror of
https://github.com/ben-grande/qusal.git
synced 2024-10-01 02:35:49 -04:00
feat: get GUI user with salt modules
This commit is contained in:
parent
077b21d3a4
commit
f903c0e3df
@ -4,6 +4,6 @@ SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
{% set gui_user = salt['cmd.shell']("getent group qubes | awk -F '[:,]' '{print $4}'") -%}
|
||||
{% set gui_user_id = salt['cmd.shell']("getent passwd " ~ gui_user ~ " | awk -F ':' '{print $3}'") -%}
|
||||
{% set gui_user_home = salt['cmd.shell']("getent passwd " ~ gui_user ~ " | awk -F ':' '{print $6}'") -%}
|
||||
{% set gui_user = salt["group.info"]("qubes").get("members")[0] -%}
|
||||
{% set gui_user_id = salt["user.info"](gui_user).get("uid") -%}
|
||||
{% set gui_user_home = salt["user.info"](gui_user).get("home") -%}
|
||||
|
Loading…
Reference in New Issue
Block a user