From 385c4fbad21b4af7a485e21933e9218cdf6d9a21 Mon Sep 17 00:00:00 2001 From: tuxwarrior Date: Wed, 1 May 2024 16:47:27 -0500 Subject: [PATCH] yay.sh ok --- scripts/99_yay.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/99_yay.sh b/scripts/99_yay.sh index 6393189..4ce21d3 100644 --- a/scripts/99_yay.sh +++ b/scripts/99_yay.sh @@ -3,6 +3,7 @@ # klevstul # https://itsfoss.com/install-yay-arch-linux/ +# https://askubuntu.com/questions/294736/run-a-shell-script-as-another-user-that-has-no-password echo "<< 99_yay.sh >>" @@ -16,19 +17,14 @@ fi # update system sudo pacman -Syu -# install dependencies -pacman -S --needed --noconfirm go - +# remove potential old yay download folder rm -rf /tmp/yay # clone repo runuser -l ${user} -c 'git clone https://aur.archlinux.org/yay.git /tmp/yay' # build yay -# https://askubuntu.com/questions/294736/run-a-shell-script-as-another-user-that-has-no-password sudo -u ${user} bash -c 'cd /tmp/yay && makepkg -si' -#runuser -l ${user} -c 'cd /tmp/yay && makepkg -si' - # test yay runuser -l ${user} -c 'yay --version'