Browse Source

Update install.sh

merge-requests/31/head
Sebastian Werner 6 years ago
parent
commit
ccfbd0fe9f
  1. 8
      scripts/install.sh

8
scripts/install.sh

@ -99,14 +99,14 @@ source ./scripts/subinstallers/platform.sh
# initial load update package list # initial load update package list
if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then
sudo apt-get update sudo apt-get update
elif ["$DISTRO" == "archlinux"]; then elif ["$DISTRO" == "arch"]; then
sudo pacman -Syyy sudo pacman -Syyy
fi fi
# install figlet # install figlet
if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then
sudo apt-get install -y figlet sudo apt-get install -y figlet
elif ["$DISTRO" == "archlinux"]; then elif ["$DISTRO" == "arch"]; then
sudo pacman -S --noconfirm figlet sudo pacman -S --noconfirm figlet
fi fi
@ -134,7 +134,7 @@ sudo systemctl restart ssh
# Additional tools fail2ban # Additional tools fail2ban
if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then
sudo apt-get install -y dnsutils fail2ban sudo apt-get install -y dnsutils fail2ban
elif ["$DISTRO" == "archlinux"]; then elif ["$DISTRO" == "arch"]; then
sudo pacman -S --noconfirm bind-tools fail2ban sudo pacman -S --noconfirm bind-tools fail2ban
fi fi
@ -143,7 +143,7 @@ if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ]; then
sudo apt install -y linux-headers-$(uname -r) sudo apt install -y linux-headers-$(uname -r)
elif [ "$DISTRO" == "raspbian" ]; then elif [ "$DISTRO" == "raspbian" ]; then
sudo apt-get install -y raspberrypi-kernel-headers sudo apt-get install -y raspberrypi-kernel-headers
elif ["$DISTRO" == "archlinux"]; then elif ["$DISTRO" == "arch"]; then
sudo pacman -S --noconfirm linux-lts-headers sudo pacman -S --noconfirm linux-lts-headers
fi fi

Loading…
Cancel
Save