From 44e21f38c707287b547f2fa76b9563f92a2c8f99 Mon Sep 17 00:00:00 2001 From: Sebastian Werner Date: Wed, 1 Jul 2020 21:46:19 +0000 Subject: [PATCH] Update install.sh added archlinux support --- scripts/install.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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