From 4c7baae4af0b9f339425cdca4b9815701addd80f Mon Sep 17 00:00:00 2001 From: "Toerd@480" Date: Tue, 31 Dec 2019 13:04:32 +0100 Subject: [PATCH] yay runs under root now, not great but a workaround. --- fresh.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fresh.sh b/fresh.sh index b76880f..98a1ca5 100755 --- a/fresh.sh +++ b/fresh.sh @@ -22,7 +22,7 @@ do case $opt in done device=${device:="480"} -repo=${repo:="https://toerd@g.phga.de:444/toerd/dotfiles"} +repo=${repo:="https://toerd@g.phga.de/toerd/dotfiles"} prog=${prog:="$scriptdir/pack.csv"} aurhelper=${aurhelper:="yay"} @@ -89,7 +89,7 @@ install_aur() { dialog --title "AUR packages" --infobox "AUR Package $asd/$as\n\nInstalling: $1\n\n> $2 <" 0 0 # is package already installed? grep "^$1$" <<< "$aur_already_installed" && return - sudo -u $uname $aurhelper -S --noconfirm "$1" &>> $logfile + $aurhelper -S --noconfirm "$1" &>> $logfile } install_manual() { @@ -104,9 +104,9 @@ install_aur_helper() { dialog --title "Installing the AUR Helper" --infobox "Installing dependencies..." 0 0 pacman --noconfirm --needed -S go &>> $logfile dialog --title "Installing the AUR Helper" --infobox "Cloning repository..." 0 0 - cd $(sudo -u $uname mktemp -d) + cd $(mktemp -d) git clone https://aur.archlinux.org/yay.git . &>> $logfile - sudo -u $uname makepkg --noconfirm -s &>> $logfile + makepkg --noconfirm -s &>> $logfile pacman -U *.xz } @@ -232,7 +232,7 @@ set_system_stuff() { add_xorg_conf set_git_config #link syncthing config and move certs - sudo -u $uname /home/$uname/.dotfiles/syncthing/link-confs.sh &>> $logfile + # sudo -u $uname /home/$uname/.dotfiles/syncthing/link-confs.sh &>> $logfile echo "Leave system stuff\n\n" >> $logfile } # ACTUAL ROUTINE