[mc] Robust handling of Forge, Bukkit, and Spigot version selection

* refactor server.properties sed ops into a utility function
* also switch to jq instead of jsawk
* simplify to BUILD_FROM_SOURCE from BUILD_SPIGOT_FROM_SOURCE
Fixes #70
This commit is contained in:
Geoff Bourne
2016-04-23 22:23:55 -05:00
parent 0ea4ea7d0c
commit cf5d194b14
4 changed files with 100 additions and 192 deletions
+6 -1
View File
@@ -11,4 +11,9 @@ while lsof -- /start-minecraft; do
echo -n "."
sleep 1
done
exec /start-minecraft
mkdir /home/minecraft
chown minecraft: /home/minecraft
echo "Switching to user 'minecraft'"
exec sudo -E -u minecraft /start-minecraft