mc: avoid usermod when UID matches current user ID

This commit is contained in:
Geoff Bourne committed 2018-08-05 16:38:22 -05:00
1 parent 6ec6655280
commit 7005f00df0
1 file changed
+1 -1
+1 -1
View File
@@ -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