mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-04-13 17:18:54 +00:00
26 lines
518 B
Bash
Executable File
26 lines
518 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -x
|
|
|
|
if [ ! -e /conf/elasticsearch.* ]; then
|
|
cp $ES_HOME/config/elasticsearch.yml /conf
|
|
fi
|
|
|
|
if [ ! -e /conf/logging.* ]; then
|
|
cp $ES_HOME/config/logging.yml /conf
|
|
fi
|
|
|
|
OPTS="-Des.path.conf=/conf -Des.path.data=/data"
|
|
|
|
if [ -n "$CLUSTER" ]; then
|
|
OPTS="$OPTS -Des.cluster.name=$CLUSTER"
|
|
fi
|
|
if [ -n "$NODE_NAME" ]; then
|
|
OPTS="$OPTS -Des.node.name=$NODE_NAME"
|
|
fi
|
|
if [ -n "$UNICAST_HOSTS" ]; then
|
|
OPTS="$OPTS -Des.discovery.zen.ping.unicast.hosts=$UNICAST_HOSTS"
|
|
fi
|
|
|
|
$ES_HOME/bin/elasticsearch $OPTS
|