diff --git a/bin/mc-send-to-console b/bin/mc-send-to-console index 9f1762a3..80a310c4 100755 --- a/bin/mc-send-to-console +++ b/bin/mc-send-to-console @@ -17,7 +17,7 @@ if [ ! -p "${CONSOLE_IN_NAMED_PIPE}" ]; then exit 1 fi -if [ "$(id -u)" = 0 ]; then +if [ "$(id -u)" = 0 -a $UID != 0 ]; then if [[ $(getDistro) == alpine ]]; then exec su-exec minecraft bash -c "echo '$*' > '${CONSOLE_IN_NAMED_PIPE:-/tmp/minecraft-console-in}'" else