From 72bc192cdabc13ed3ee2ab3d1f19bcdaa1444bd9 Mon Sep 17 00:00:00 2001 From: Joseph Groocock Date: Sun, 1 May 2016 14:34:20 +0100 Subject: [PATCH] Improve install-yaourt, removing non-root user dependency --- scripts/install-yaourt | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/scripts/install-yaourt b/scripts/install-yaourt index 8546abc..6c89d64 100755 --- a/scripts/install-yaourt +++ b/scripts/install-yaourt @@ -1,21 +1,23 @@ -if [[ $EUID -eq 0 ]]; then - echo "You cannot run makepkg as root." - echo "Please run this script again as a non-elevated user" - exit 1 -fi +#if [[ $EUID -eq 0 ]]; then +# echo "You cannot run makepkg as root." +# echo "Please run this script again as a non-elevated user" +# exit 1 +#fi -# Install git dependency -sudo pacman -S --asdeps git +# Install git, yajl dependencies +sudo pacman -S --asdeps yajl git cd /tmp git clone https://aur.archlinux.org/package-query.git cd package-query -makepkg -sri +sudo -u nobody makepkg -sr +sudo pacman -U `ls | grep package-query.*\.tar\.xz' cd .. git clone https://aur.archlinux.org/yaourt.git cd yaourt -makepkg -sri +sudo -u nobody makepkg -sr +sudo pacman -U `ls | grep yaourt.*\.tar\.xz' cd .. rm -rf package-query yaourt