yay runs under root now, not great but a workaround.
This commit is contained in:
parent
e731b2e62e
commit
4c7baae4af
10
fresh.sh
10
fresh.sh
@ -22,7 +22,7 @@ do case $opt in
|
|||||||
done
|
done
|
||||||
|
|
||||||
device=${device:="480"}
|
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"}
|
prog=${prog:="$scriptdir/pack.csv"}
|
||||||
aurhelper=${aurhelper:="yay"}
|
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
|
dialog --title "AUR packages" --infobox "AUR Package $asd/$as\n\nInstalling: $1\n\n> $2 <" 0 0
|
||||||
# is package already installed?
|
# is package already installed?
|
||||||
grep "^$1$" <<< "$aur_already_installed" && return
|
grep "^$1$" <<< "$aur_already_installed" && return
|
||||||
sudo -u $uname $aurhelper -S --noconfirm "$1" &>> $logfile
|
$aurhelper -S --noconfirm "$1" &>> $logfile
|
||||||
}
|
}
|
||||||
|
|
||||||
install_manual() {
|
install_manual() {
|
||||||
@ -104,9 +104,9 @@ install_aur_helper() {
|
|||||||
dialog --title "Installing the AUR Helper" --infobox "Installing dependencies..." 0 0
|
dialog --title "Installing the AUR Helper" --infobox "Installing dependencies..." 0 0
|
||||||
pacman --noconfirm --needed -S go &>> $logfile
|
pacman --noconfirm --needed -S go &>> $logfile
|
||||||
dialog --title "Installing the AUR Helper" --infobox "Cloning repository..." 0 0
|
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
|
git clone https://aur.archlinux.org/yay.git . &>> $logfile
|
||||||
sudo -u $uname makepkg --noconfirm -s &>> $logfile
|
makepkg --noconfirm -s &>> $logfile
|
||||||
pacman -U *.xz
|
pacman -U *.xz
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -232,7 +232,7 @@ set_system_stuff() {
|
|||||||
add_xorg_conf
|
add_xorg_conf
|
||||||
set_git_config
|
set_git_config
|
||||||
#link syncthing config and move certs
|
#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
|
echo "Leave system stuff\n\n" >> $logfile
|
||||||
}
|
}
|
||||||
# ACTUAL ROUTINE
|
# ACTUAL ROUTINE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user