start switch
This commit is contained in:
parent
2e9aa48b0d
commit
6feb26bf6e
12
script.sh
12
script.sh
@ -15,7 +15,7 @@ if [[ "$ansFirewallSetup" =~ ("N"|"n") ]]; then
|
|||||||
printf "+ Thanks, working on next bit\n"
|
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]: "
|
printf "Do you want to block non-LAN ssh connections? [Y/n/castom]: "
|
||||||
read sshBlockRange
|
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"
|
printf "\n Open /opt/minecraft/user_jvm_args.txt in your favorite editor. File contains more instructions"
|
||||||
|
|
||||||
else
|
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
|
systemctl enable mc-forge
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "\n+ Done, thanks for your time. It is goode idea to chack if everythink is alright by running:"
|
printf "\n+ Done, thanks for your time. It is goode idea to chack if everythink is alright by running:"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user