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