diff --git a/scripts/install.sh b/scripts/install.sh index dc3b6c2..b7c4f5a 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -94,10 +94,18 @@ cd /opt/mistborn git submodule update --init --recursive # initial load update package list -sudo apt-get update +if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then + sudo apt-get update +elif ["$DISTRO" == "archlinux"]; then + sudo pacman -Syyy +fi # install figlet -sudo apt-get install -y figlet +if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then + sudo apt-get install -y figlet +elif ["$DISTRO" == "archlinux"]; then + sudo pacman -S --noconfirm figlet +fi # get os and distro source ./scripts/subinstallers/platform.sh @@ -128,6 +136,8 @@ sudo systemctl restart ssh if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then sudo apt-get install -y dnsutils fail2ban elif ["$DISTRO" == "archlinux"]; then + sudo pacman -S --noconfirm bind-tools fail2ban +fi # Install kernel headers