added reflector to update script

This commit is contained in:
RP1 2024-12-22 22:27:22 +01:00
parent 5894ecdc14
commit faf4a6bcb9

View file

@ -9,10 +9,20 @@ bold=$(tput bold) # ${bold}
normal=$(tput sgr0) # ${normal}
yellow=$(tput setaf 3) # ${yellow}
# Deleting password for the script
echo "$USER ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/99-t
sudo sed -i 's/OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto !autodeps)/OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto !autodeps)/' /etc/makepkg.conf
echo "$USER ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/99-t
sudo sed -i 's/OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto !autodeps)/OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto !autodeps)/' /etc/makepkg.conf
flatpak installremote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak installremote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
# Installing reflector for updating mirrors
sudo pacman -S reflector --noconfirm
sudo reflector -c "Hungary,Austria,Germany,Czech" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist
systemctl enable reflector.timer
systemctl start reflector.timer
sudo pacman -Sy
# Installing packages
@ -21,7 +31,8 @@ yellow=$(tput setaf 3) # ${yellow}
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target geoclue.service
hblock
# Downloading RavePkg
# Downloading RavePkg
mkdir cosmetics
sudo chown -R $USER:$GROUP /home/$USER/cosmetics/
cd cosmetics
@ -44,6 +55,18 @@ yellow=$(tput setaf 3) # ${yellow}
cd -
rm -rf yaru
# Flatseal - Flatpak app jogosultság beállító
echo
echo ---------------------------------------------
echo Installing ${bold}${yellow}Flatseal${normal}
yay -S flatseal --noconfirm
sudo cp -a overrides /home/$USER/.local/share/flatpak
echo ${bold}${yellow}Flatseal ${normal}installed.
echo ---------------------------------------------
echo
echo
echo ---------------------------------------------
echo Installing ${bold}${yellow}CachyOS - Gaming Kernel${normal}
@ -98,18 +121,6 @@ SystemAccount=false" | sudo tee /var/lib/AccountsService/users/$USER
echo ${bold}${yellow}Rave command with bash completion ${normal}installed.
echo ---------------------------------------------
# Flatseal - Flatpak app jogosultság beállító
echo
echo ---------------------------------------------
echo Installing ${bold}${yellow}Flatseal${normal}
yay -S flatseal --noconfirm
sudo cp -a overrides /home/$USER/.local/share/flatpak
echo ${bold}${yellow}Flatseal ${normal}installed.
echo ---------------------------------------------
echo
# Autostarting ProgramScript after restart
echo ---------------------------------------------
echo Installing ${bold}${yellow}ProgramScript Autostart${normal}