Browse Source

Update install.sh

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

8
scripts/install.sh

@ -93,6 +93,9 @@ pushd .
cd /opt/mistborn cd /opt/mistborn
git submodule update --init --recursive git submodule update --init --recursive
# get os and distro
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
@ -107,10 +110,6 @@ elif ["$DISTRO" == "archlinux"]; then
sudo pacman -S --noconfirm figlet sudo pacman -S --noconfirm figlet
fi fi
# get os and distro
source ./scripts/subinstallers/platform.sh
# iptables # iptables
echo "Setting up firewall (iptables)" echo "Setting up firewall (iptables)"
if [ ! -f "/etc/iptables/rules.v4" ]; then if [ ! -f "/etc/iptables/rules.v4" ]; then
@ -139,7 +138,6 @@ elif ["$DISTRO" == "archlinux"]; then
sudo pacman -S --noconfirm bind-tools fail2ban sudo pacman -S --noconfirm bind-tools fail2ban
fi fi
# Install kernel headers # Install kernel headers
if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ]; then if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ]; then
sudo apt install -y linux-headers-$(uname -r) sudo apt install -y linux-headers-$(uname -r)

Loading…
Cancel
Save