mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-02-21 00:36:23 +00:00
[es] Adding CLUSTER_FROM feature for migrating cluster data directories
This commit is contained in:
@@ -20,6 +20,12 @@ OPTS="-Des.path.conf=/conf \
|
||||
|
||||
if [ -n "$CLUSTER" ]; then
|
||||
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
|
||||
|
||||
if [ -n "$NODE_NAME" ]; then
|
||||
|
||||
Reference in New Issue
Block a user