mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
mc: remove extraneous g flags on passwd file mod
This commit is contained in:
parent
5267927c3f
commit
e2bf56938b
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user