[mc] Improved UID/GID handling in passwd/group files

For #136
This commit is contained in:
Geoff Bourne 2017-04-04 22:11:05 -05:00
parent 54d19715c7
commit 290e2c734a

View file

@ -1,8 +1,8 @@
#!/bin/sh
set -e
sed -i "/^minecraft/s/1000/${UID}/g" /etc/passwd
sed -i "/^minecraft/s/1000/${GID}/g" /etc/group
sed -i "/^minecraft/s/:1000:1000:/:${UID}:${GID}:/g" /etc/passwd
sed -i "/^minecraft/s/:1000:/:${GID}:/g" /etc/group
if [ "$SKIP_OWNERSHIP_FIX" != "TRUE" ]; then
fix_ownership() {