diff --git a/script.sh b/script.sh index 890e592..6579778 100755 --- a/script.sh +++ b/script.sh @@ -13,7 +13,7 @@ if [[ "$ansFirewallSetup" =~ ("N"|"n") ]]; then printf "+ Thanks, working on next bit\n" -else +elif [[ "$ansFirewallSetup" =~ ("Y"|"y") || -z $ansFirewallSetup ]]; then printf "Do you want to block non-LAN ssh connections? [Y/n/castom]: " read sshBlockRange @@ -58,7 +58,13 @@ sudo apt upgrade -y # Installing depandencies printf "\n+ Installing depandencies \n\n" -sudo apt install openjdk-17-jre-headless screen p7zip-full iptables -y +sudo apt install openjdk-21-jre-headless screen -y + +if [[ "$ansFirewallSetup" =~ ("y"|"Y") || -z $ansFirewallSetup ]]; then + + sudo apt install iptables -y + +fi # User and groupe managment printf "\n+ Creating user minecraft and basic file structure"