mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-17 19:37:58 +00:00
Copy additional meta files into FTB directory
This commit is contained in:
@@ -307,6 +307,13 @@ Now you can add a `-e FTB_SERVER_MOD=name_of_modpack.zip` to your command-line.
|
|||||||
-e FTB_SERVER_MOD=FTBPresentsSkyfactory3Server_3.0.6.zip \
|
-e FTB_SERVER_MOD=FTBPresentsSkyfactory3Server_3.0.6.zip \
|
||||||
-p 25565:25565 -e EULA=TRUE --name mc itzg/minecraft-server
|
-p 25565:25565 -e EULA=TRUE --name mc itzg/minecraft-server
|
||||||
|
|
||||||
|
Instead of explicitly downloading a modpack from the Feed the Beast site, you
|
||||||
|
can you set `FTB_SERVER_MOD` to the **server** URL of a modpack, such as
|
||||||
|
|
||||||
|
$ docker run ... \
|
||||||
|
-e TYPE=FTB \
|
||||||
|
-e FTB_SERVER_MOD=https://www.feed-the-beast.com/projects/ftb-infinity-lite-1-10/files/2402889
|
||||||
|
|
||||||
### Using the /data volume
|
### Using the /data volume
|
||||||
|
|
||||||
You must use a persistent `/data` mount for this type of server.
|
You must use a persistent `/data` mount for this type of server.
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ function installFTB {
|
|||||||
|
|
||||||
echo "Unpacking FTB server modpack ${srv_modpack} ..."
|
echo "Unpacking FTB server modpack ${srv_modpack} ..."
|
||||||
mkdir -p ${FTB_DIR}
|
mkdir -p ${FTB_DIR}
|
||||||
unzip -o ${srv_modpack} -d ${FTB_DIR}
|
unzip -o ${srv_modpack} -d ${FTB_DIR}
|
||||||
cp -f /data/eula.txt ${FTB_DIR}/eula.txt
|
cp -f /data/eula.txt ${FTB_DIR}/eula.txt
|
||||||
FTB_SERVER_START=${FTB_DIR}/ServerStart.sh
|
FTB_SERVER_START=${FTB_DIR}/ServerStart.sh
|
||||||
chmod a+x ${FTB_SERVER_START}
|
chmod a+x ${FTB_SERVER_START}
|
||||||
@@ -540,7 +540,7 @@ JVM_OPTS="-Xms${INIT_MEMORY:-${MEMORY}} -Xmx${MAX_MEMORY:-${MEMORY}} ${JVM_OPTS}
|
|||||||
set -x
|
set -x
|
||||||
if [[ ${TYPE} == "FEED-THE-BEAST" ]]; then
|
if [[ ${TYPE} == "FEED-THE-BEAST" ]]; then
|
||||||
cp -f $SERVER_PROPERTIES ${FTB_DIR}/server.properties
|
cp -f $SERVER_PROPERTIES ${FTB_DIR}/server.properties
|
||||||
cp -f /data/eula.txt ${FTB_DIR}/eula.txt
|
cp -f /data/{eula,ops,white-list}.txt ${FTB_DIR}/
|
||||||
cd ${FTB_DIR}
|
cd ${FTB_DIR}
|
||||||
echo "Running FTB server modpack start ..."
|
echo "Running FTB server modpack start ..."
|
||||||
exec sh ${FTB_SERVER_START}
|
exec sh ${FTB_SERVER_START}
|
||||||
|
|||||||
Reference in New Issue
Block a user