docker-minecraft-server/minecraft-server/start.sh
Mike Ryan 4ff077f151 Drop privileges before starting server
- Create 'minecraft' user account within image.
- Drop to 'minecraft' user before starting server.
2014-11-01 15:35:36 -05:00

5 lines
103 B
Bash
Executable File

#!/bin/sh
set -e
chown -R minecraft:minecraft /data
exec su -s /bin/bash -c /start-minecraft minecraft