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() {
|
init() {
|
||||||
wait_for_network
|
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
|
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
|
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
|
||||||
$aurhelper -S --noconfirm "$1" &>> $logfile
|
sudo -u $uname $aurhelper -S --noconfirm "$1" &>> $logfile
|
||||||
}
|
}
|
||||||
|
|
||||||
install_manual() {
|
install_manual() {
|
||||||
@ -116,7 +116,7 @@ install_aur_helper() {
|
|||||||
cd $(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
|
sudo -u $uname makepkg --noconfirm -s &>> $logfile
|
||||||
pacman -U *.zst
|
pacman -U --noconfirm *.zst
|
||||||
}
|
}
|
||||||
|
|
||||||
installation_loop() {
|
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"
|
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
|
no_beep
|
||||||
set_system_stuff
|
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
|
if [[ ${curr_platform} == "L" ]]; then
|
||||||
enable_service "netctl-auto@wlp3s0"
|
enable_service "netctl-auto@wlp3s0"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user