mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-03-12 17:51:24 +00:00
mc: avoid usermod when UID matches current user ID
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $(id -u) = 0 ]; then
|
||||
if [[ -v UID ]]; then
|
||||
if [[ -v UID && $UID != $(id -u) ]]; then
|
||||
usermod -u $UID minecraft
|
||||
fi
|
||||
if [[ -v GID ]]; then
|
||||
|
||||
Reference in New Issue
Block a user