dockerfiles/minecraft/scripts/addop.sh

18 lines
184 B
Bash
Raw Normal View History

2015-02-04 05:17:12 +00:00
OP="$1"
PREFIX="$2"
if [ "$OP" = "" ]
then
exit -1
fi
if [ "$PREFIX" = "" ]
then
exit -1
fi
echo "Trying to op $OP on $PREFIX"
echo "op $OP" | docker attach "$PREFIX"-mc-server