diff --git a/minecraft-server/start b/minecraft-server/start index e0170f19..9e4c5f12 100755 --- a/minecraft-server/start +++ b/minecraft-server/start @@ -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