AllTheMods / Server-Scripts

Server Startup Scripts
Other
68 stars 38 forks source link

Dijkstra changes #43

Closed FallenEagle1 closed 5 years ago

FallenEagle1 commented 5 years ago

Dijkstra's changes for the serverstart files have less issues for linux.

Lartza commented 5 years ago

Only got this to work after dos2unix settings.cfg and these extensive changes https://gist.github.com/Lartza/50d8adc86b087e6ddd4696a2e34faa1b (thanks https://www.shellcheck.net/)

EDIT: Except 64-bit java check fails still EDIT2: The original check works for Oracle's Java but not openjdk. Line 318 needs to be if [[ "$(${MC_SERVER_JAVA} -version 2>&1 | awk -F ' ' '/Bit/ {print $2}')" == "64-Bit" ]]; then for openjdk, but both variations fail for openj9.

FallenEagle1 commented 5 years ago

Slightly different route for doing things.