mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-29 09:00:29 +00:00
+3
-1
@@ -69,13 +69,15 @@ if [ -n "$MIN_MASTERS" ]; then
|
|||||||
OPTS="$OPTS --discovery.zen.minimum_master_nodes=$MIN_MASTERS"
|
OPTS="$OPTS --discovery.zen.minimum_master_nodes=$MIN_MASTERS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mkdir -p /conf/plugins
|
||||||
OPTS="$OPTS --path.plugins=/conf/plugins"
|
OPTS="$OPTS --path.plugins=/conf/plugins"
|
||||||
|
|
||||||
if [ -n "$PLUGINS" ]; then
|
if [ -n "$PLUGINS" ]; then
|
||||||
|
PLUGIN_OPTS="-Des.path.conf=/conf -Des.path.plugins=/conf/plugins"
|
||||||
for p in $(echo $PLUGINS | awk -v RS=, '{print}')
|
for p in $(echo $PLUGINS | awk -v RS=, '{print}')
|
||||||
do
|
do
|
||||||
echo "Installing the plugin $p"
|
echo "Installing the plugin $p"
|
||||||
$ES_HOME/bin/plugin install $p
|
$ES_HOME/bin/plugin $PLUGIN_OPTS install $p -t 1m -b
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
mkdir -p /conf/plugins
|
mkdir -p /conf/plugins
|
||||||
|
|||||||
Reference in New Issue
Block a user