diff --git a/script.sh b/script.sh index 087b461..2e83974 100755 --- a/script.sh +++ b/script.sh @@ -15,8 +15,8 @@ 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 @@ -209,8 +209,16 @@ if [[ "$minRam" = "Error" || "$maxRam" = "Error" ]]; then printf "\n Open /opt/minecraft/user_jvm_args.txt in your favorite editor. File contains more instructions" else - systemctl start mc-forge.service + + printf "Do you want to start server right now? [Y/n]: \n" + read startServer + + if [[ "$startServer" =~ ("y"|"Y") || -z $startServer ]]; then + systemctl start mc-forge.serice + fi + systemctl enable mc-forge + fi printf "\n+ Done, thanks for your time. It is goode idea to chack if everythink is alright by running:"