mc: remove extraneous g flags on passwd file mod

This commit is contained in:
Geoff Bourne 2018-04-14 13:59:43 -05:00
parent 5267927c3f
commit e2bf56938b

View File

@ -1,8 +1,9 @@
#!/bin/sh
set -e
sed -i "/^minecraft/s/:1000:1000:/:${UID}:${GID}:/g" /etc/passwd
sed -i "/^minecraft/s/:1000:/:${GID}:/g" /etc/group
# Since Alpine doesn't have a usermod command we have to directly manipulate the passwd/group files :(
sed -i "/^minecraft/s/:1000:1000:/:${UID}:${GID}:/" /etc/passwd
sed -i "/^minecraft/s/:1000:/:${GID}:/" /etc/group
if [ "$SKIP_OWNERSHIP_FIX" != "TRUE" ]; then
fix_ownership() {