AllTheMods / Server-Scripts

Server Startup Scripts
Other
68 stars 37 forks source link

Server wont start on linux #83

Closed csalter104 closed 2 years ago

csalter104 commented 3 years ago

sh '/opt/minecraft/skyfactory4/serverstart.sh' /opt/minecraft/skyfactory4/serverstart.sh: 36: Syntax error: "(" unexpected (expecting "then")

NexusXe commented 2 years ago

I realize this is a stale issue, but for those encountering this issue in the future: Make sure you're running the server in bash. The kernel will (by default) handle this due to the shebang, but running the command as something like sh ./serverstart.sh will result in error.

Simply running it as ./serverstart.sh will resolve this issue.