Check distro and copy appropriate pacman.conf

This commit is contained in:
RealStickman 2020-11-05 13:37:34 +01:00
parent 3e0ff417c8
commit 1bc90da8ca

View File

@ -61,6 +61,17 @@ cp -r ~/config/scripts/ ~/
#copy stuff to /etc #copy stuff to /etc
sudo cp -r ~/config/etc / sudo cp -r ~/config/etc /
# Distro specific stuff
distro=$(lsb_release -a | grep "Distributor ID:")
if [ "$distro" == "Distributor ID: ArcoLinux" ]; then
sudo mv /etc/arco-pacman.conf /etc/pacman.conf
fi
if [ "$distro" == "Distributor ID: " ]; then
sudo mv /etc/arch-pacman.conf /etc/pacman.conf
fi
#copy old lightdm themes (and maybe other stuff, idk) #copy old lightdm themes (and maybe other stuff, idk)
sudo cp -r ~/config/var / sudo cp -r ~/config/var /