docker-minecraft-server/build/ubuntu/setup-user.sh

10 lines
195 B
Bash
Raw Normal View History

#!/bin/sh
set -e
if id ubuntu > /dev/null 2>&1; then
deluser ubuntu
fi
addgroup --gid 1000 minecraft
adduser --system --shell /bin/false --uid 1000 --ingroup minecraft --home /data minecraft