mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-11-10 06:14:14 +00:00
build: remove pre-installed ubuntu user for consistency (#3016)
This commit is contained in:
parent
be846dd369
commit
edffc58589
2 changed files with 5 additions and 2 deletions
|
@ -26,8 +26,7 @@ apt-get install -y \
|
|||
zstd \
|
||||
lbzip2 \
|
||||
nfs-common \
|
||||
libpcap0.8 \
|
||||
webp
|
||||
libpcap0.8
|
||||
|
||||
# Install Git LFS
|
||||
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
|
||||
|
|
|
@ -2,5 +2,9 @@
|
|||
|
||||
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
|
Loading…
Reference in a new issue