fix: yay install
This commit is contained in:
parent
0b84f46c2f
commit
ff8ddb4fce
8
fresh.sh
8
fresh.sh
@ -41,7 +41,7 @@ wait_for_network() {
|
||||
|
||||
init() {
|
||||
wait_for_network
|
||||
pacman -S --noconfirm --needed dialog git make || { echo "Run as root user"; exit; }
|
||||
pacman -S --noconfirm --needed dialog git make || { echo "Run as root user"; clear; exit; }
|
||||
refresh_keyring
|
||||
}
|
||||
|
||||
@ -97,7 +97,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
|
||||
$aurhelper -S --noconfirm "$1" &>> $logfile
|
||||
sudo -u $uname $aurhelper -S --noconfirm "$1" &>> $logfile
|
||||
}
|
||||
|
||||
install_manual() {
|
||||
@ -116,7 +116,7 @@ install_aur_helper() {
|
||||
cd $(mktemp -d)
|
||||
git clone https://aur.archlinux.org/yay.git . &>> $logfile
|
||||
sudo -u $uname makepkg --noconfirm -s &>> $logfile
|
||||
pacman -U *.zst
|
||||
pacman -U --noconfirm *.zst
|
||||
}
|
||||
|
||||
installation_loop() {
|
||||
@ -287,7 +287,7 @@ case $todo in
|
||||
set_permissions "Defaults timestamp_timeout=45\n%wheel ALL=(ALL) ALL\n%wheel ALL=(ALL) NOPASSWD: /usr/bin/shutdown,/usr/bin/reboot,/usr/bin/systemctl suspend,/usr/bin/wifi-menu,/usr/bin/mount,/usr/bin/umount,/usr/bin/pacman -Syu,/usr/bin/pacman -Ss,/usr/bin/pacman -Syyu,/usr/bin/pacman -Syyu --noconfirm,/usr/bin/loadkeys"
|
||||
no_beep
|
||||
set_system_stuff
|
||||
# enable_service "--user syncthing" "netctl-auto@wlp3s0" "--user offlineimap@philip_thi" "--user offlineimap@philip_posteo" "--user offlineimap@philip_gmail"
|
||||
enable_service "--user syncthing"
|
||||
if [[ ${curr_platform} == "L" ]]; then
|
||||
enable_service "netctl-auto@wlp3s0"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user