mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
[es] Adding CLUSTER_FROM feature for migrating cluster data directories
This commit is contained in:
parent
53932e64f2
commit
7f048c5e8b
@ -20,6 +20,12 @@ OPTS="-Des.path.conf=/conf \
|
|||||||
|
|
||||||
if [ -n "$CLUSTER" ]; then
|
if [ -n "$CLUSTER" ]; then
|
||||||
OPTS="$OPTS -Des.cluster.name=$CLUSTER"
|
OPTS="$OPTS -Des.cluster.name=$CLUSTER"
|
||||||
|
if [ -n "$CLUSTER_FROM" ]; then
|
||||||
|
if [ -d /data/$CLUSTER_FROM -a ! -d /data/$CLUSTER ]; then
|
||||||
|
echo "Performing cluster data migration from $CLUSTER_FROM to $CLUSTER"
|
||||||
|
mv /data/$CLUSTER_FROM /data/$CLUSTER
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$NODE_NAME" ]; then
|
if [ -n "$NODE_NAME" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user