Browse Source

Update install.sh

added archlinux support
merge-requests/31/head
Sebastian Werner 6 years ago
parent
commit
44e21f38c7
  1. 14
      scripts/install.sh

14
scripts/install.sh

@ -94,10 +94,18 @@ cd /opt/mistborn @@ -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 @@ -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

Loading…
Cancel
Save