This commit is contained in:
tuxwarrior
2024-05-01 18:04:24 -05:00
parent 02e32a52cf
commit 771fa61bd7

View File

@@ -8,9 +8,8 @@ echo "<< 99_software.sh >>"
user=poq user=poq
if [ "$EUID" -ne 0 ] if [ "$EUID" -ne 0 ] then
then echo "error: run as 'root'" echo "error: run as 'root'"; exit
exit
fi fi
this_file_name=`basename "$0"` this_file_name=`basename "$0"`
@@ -39,7 +38,7 @@ param_check() {
# ----- # -----
# always update the system # always update the system
# ----- # -----
sudo pacman -Syu pacman -Syu
echo "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-" echo "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-"
@@ -106,14 +105,17 @@ if [ ${operation} == "update" ] ; then
if [[ -n "$list_aur" ]] if [[ -n "$list_aur" ]]
then then
echo "^^^^^^^^^^^^^^^^^^^^^^^^^ ${list_aur}" echo "^^^^^^^^^^^^^^^^^^^^^^^^^ ${list_aur}"
echo ${list_aur} > /tmp/list_aur.txt
#sudo -u ${user} bash -c 'yay -S --needed --noconfirm --timeupdate ${list_aur}' #sudo -u ${user} bash -c 'yay -S --needed --noconfirm --timeupdate ${list_aur}'
#sudo -u ${user} bash -c 'yay' #sudo -u ${user} bash -c 'yay'
runuser -l ${user} -c 'echo "--------- __ ---------- : ${list_aur}"' runuser -l ${user} -c 'ls -al /tmp/list_aur.txt'
#su ${user} #su ${user}
#yay -S --needed --noconfirm --timeupdate ${list_aur} #yay -S --needed --noconfirm --timeupdate ${list_aur}
#sudo -u ${user} bash -c 'echo "--------- __ ---------- : ${list_aur}"'
#yay -S --needed --noconfirm --timeupdate ${list_aur} #yay -S --needed --noconfirm --timeupdate ${list_aur}
sudo -u ${user} bash -c 'echo "--------- __ ---------- : ${list_aur}"' #sudo -u ${user} bash -c 'echo "--------- __ ---------- : ${list_aur}"'
else else
echo "No AUR packages to install" echo "No AUR packages to install"
fi fi