From 6304507b81159b2dd3062dfb1173cdd9a52b22c8 Mon Sep 17 00:00:00 2001 From: tuxwarrior Date: Wed, 1 May 2024 16:53:48 -0500 Subject: [PATCH] u --- scripts/99_software.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/99_software.sh b/scripts/99_software.sh index 39af12b..9a18651 100644 --- a/scripts/99_software.sh +++ b/scripts/99_software.sh @@ -6,6 +6,8 @@ echo "<< 99_software.sh >>" +user=poq + if [ "$EUID" -ne 0 ] then echo "error: run as 'root'" exit @@ -103,7 +105,7 @@ if [ ${operation} == "update" ] ; then if [[ -n "$list_aur" ]] then - yay -S --needed --noconfirm --timeupdate $list_aur + runuser -l ${user} -c 'yay -S --needed --noconfirm --timeupdate $list_aur' else echo "No AUR packages to install" fi