start switch

This commit is contained in:
godot 2024-07-20 08:58:07 +02:00
parent 2e9aa48b0d
commit 6feb26bf6e

View File

@ -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:"