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