build: remove pre-installed ubuntu user for consistency (#3016)

This commit is contained in:
Geoff Bourne 2024-07-26 21:26:36 -05:00 committed by GitHub
parent be846dd369
commit edffc58589
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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