mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
a4835ec331
* Download buildtools * Download buildtools * Not a good idea to chmod /root * Remove bukkit code * fix jar not found * Run start-minecraft as root (temp) * Working buildtools * Remove echo line * Added more server properties, not working yet * Show what server properties are being added * Show what server properties are being added * Add rcon.password * Add max-world-size * Added alot of server settings * Expose rcon port * Export home per itzg suggestion * Update readme and server properties * Env for building spigot from source * Update readme
15 lines
254 B
Bash
Executable File
15 lines
254 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
usermod --uid $UID minecraft
|
|
groupmod --gid $GID minecraft
|
|
|
|
chown -R minecraft:minecraft /data /start-minecraft
|
|
chmod -R g+wX /data /start-minecraft
|
|
|
|
while lsof -- /start-minecraft; do
|
|
echo -n "."
|
|
sleep 1
|
|
done
|
|
exec /start-minecraft
|