docker-minecraft-server/minecraft-server/start.sh
Geoff Bourne 88a796bb44 Issue #9: performing usermod to allow for -e provided uid of the minecraft server process
* corrected .dockerignore to allow for a $(pwd)/data for local testing of -v
2015-01-26 03:29:35 +00:00

7 lines
140 B
Bash
Executable File

#!/bin/sh
set -e
usermod --uid $UID minecraft
chown -R minecraft /data /start-minecraft
exec su -s /bin/bash -c /start-minecraft minecraft