Doors/.scripts/doors/setup

42 lines
891 B
Text
Raw Normal View History

2023-02-03 04:08:44 -05:00
#!/bin/bash
2023-02-03 05:58:10 -05:00
2023-02-03 04:08:44 -05:00
echo "
=======================================================
2023-02-03 05:39:02 -05:00
Installing D's nux (you're gonna love my nux(really))
2023-02-03 04:08:44 -05:00
=======================================================
"
2023-02-03 05:58:10 -05:00
2023-02-03 05:39:02 -05:00
# Clean up
2023-02-03 04:43:03 -05:00
if test -d Doors; then
rm -rf Doors
2023-02-03 05:39:02 -05:00
elif test -d .doors; then
rm -rf .doors
2023-02-03 04:43:03 -05:00
fi
2023-02-03 06:02:08 -05:00
# Prep
cd &&
mkdir .doors
2023-02-03 05:39:02 -05:00
# Bootstrap into distro scripts
. /etc/os-release
OS=$NAME
2023-02-03 04:08:44 -05:00
if [[ $OS == *Arch* ]]; then
2023-02-03 05:58:10 -05:00
cd &&
sudo sed '/Color/s/^#//' -i /etc/pacman.conf &&
2023-02-03 05:39:02 -05:00
sudo pacman -S --needed --noconfirm git rsync base-devel &&
2023-02-03 06:02:08 -05:00
git clone https://github.com/adoyle0/Doors.git .doors &&
2023-02-03 05:39:02 -05:00
.doors/.scripts/doors/install_min_arch
2023-02-03 04:08:44 -05:00
elif [[ $OS == *buntu* ]]; then
2023-02-03 05:58:10 -05:00
cd &&
2023-02-03 06:13:09 -05:00
sudo apt-get -y install git rsync &&
2023-02-03 06:15:55 -05:00
git clone https://github.com/adoyle0/Doors.git .doors &&
2023-02-03 05:58:10 -05:00
.doors/.scripts/doors/install_min_ubuntu
2023-02-03 05:39:02 -05:00
2023-02-03 04:08:44 -05:00
fi
2023-02-03 06:22:17 -05:00
# Copy it
rsync -avzP .doors/ .