Update after.sh
This commit is contained in:
parent
529cd5d936
commit
179dc5c9f7
1 changed files with 10 additions and 11 deletions
21
after.sh
21
after.sh
|
|
@ -59,21 +59,20 @@ EOF
|
||||||
# Install yay
|
# Install yay
|
||||||
# ─────────────────────────────────────
|
# ─────────────────────────────────────
|
||||||
|
|
||||||
install -d -o "$USERNAME" -g "$USERNAME" /home/tadas/.config/yay
|
install -d -o "$USERNAME" -g "$USERNAME" "/home/$USERNAME/.config/yay"
|
||||||
#pacman -S --needed --noconfirm git base-devel
|
|
||||||
|
|
||||||
su - "$USERNAME" <<'EOF'
|
su - "$USERNAME" <<'EOF'
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "USERNAME=$(whoami)"
|
||||||
|
cat /etc/sudoers.d/99-install-script
|
||||||
|
|
||||||
|
sudo -n true \
|
||||||
|
&& echo "Passwordless sudo works" \
|
||||||
|
|| { echo "Passwordless sudo FAILED"; exit 1; }
|
||||||
|
|
||||||
git clone https://aur.archlinux.org/yay-bin.git
|
git clone https://aur.archlinux.org/yay-bin.git
|
||||||
cd yay-bin
|
cd yay-bin
|
||||||
#
|
|
||||||
# LIMIT TESTING
|
|
||||||
echo "USERNAME=$USERNAME"
|
|
||||||
cat /etc/sudoers.d/99-install-script
|
|
||||||
runuser -u "$USERNAME" -- sudo -n true \
|
|
||||||
&& echo "Passwordless sudo works" \
|
|
||||||
|| echo "Passwordless sudo FAILED"
|
|
||||||
#############################################
|
|
||||||
|
|
||||||
makepkg -si --noconfirm
|
makepkg -si --noconfirm
|
||||||
|
|
||||||
# Set up yay to not ask for password multiple times
|
# Set up yay to not ask for password multiple times
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue