u
This commit is contained in:
@@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
echo "<< 99_software.sh >>"
|
echo "<< 99_software.sh >>"
|
||||||
|
|
||||||
|
user=poq
|
||||||
|
|
||||||
if [ "$EUID" -ne 0 ]
|
if [ "$EUID" -ne 0 ]
|
||||||
then echo "error: run as 'root'"
|
then echo "error: run as 'root'"
|
||||||
exit
|
exit
|
||||||
@@ -103,7 +105,7 @@ if [ ${operation} == "update" ] ; then
|
|||||||
|
|
||||||
if [[ -n "$list_aur" ]]
|
if [[ -n "$list_aur" ]]
|
||||||
then
|
then
|
||||||
yay -S --needed --noconfirm --timeupdate $list_aur
|
runuser -l ${user} -c 'yay -S --needed --noconfirm --timeupdate $list_aur'
|
||||||
else
|
else
|
||||||
echo "No AUR packages to install"
|
echo "No AUR packages to install"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user