mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-14 14:22:27 +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
14 lines
254 B
Bash
Executable file
14 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
|