From 7005f00df0fc3051d189ae141859921097610529 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sun, 5 Aug 2018 16:38:22 -0500 Subject: [PATCH] mc: avoid usermod when UID matches current user ID --- minecraft-server/start | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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