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

Loading…
Cancel
Save