From e167a3018e3c52e0be9df8d4bca005694e8d7783 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 14 Aug 2026 11:14:46 -0700 Subject: [PATCH] pacman, yay stuff was getting too complicated with password stuff, just don't do it unless not root. --- facts/general/package.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/facts/general/package.yml b/facts/general/package.yml index af90482..3353191 100644 --- a/facts/general/package.yml +++ b/facts/general/package.yml @@ -161,11 +161,11 @@ return 1 echo -e "\n" - echo "*** AUR (yay) ***" - if [[ $LOGNAME == "root" ]] then - su -P {{ user }} -c "yay -Syu {{ update_accept_var }}" || return 2 - else + if [[ "$LOGNAME" != "root" ]]; then + echo "*** AUR (yay) ***" yay -Syu {{ update_accept_var }} || return 2 + else + echo "*** User is root, skipping AUR (yay) ***" fi echo -e "\n" ;;