docker mt start script

This commit is contained in:
NatureFreshMilk 2019-09-12 09:44:37 +02:00
parent e13b73fb3a
commit 61ea2fb933
2 changed files with 11 additions and 0 deletions

11
app/start-mod.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
mkdir -p /tmp/mtinfo
chmod 777 -R /tmp/mtinfo
docker run --rm -it \
-v /tmp/mtinfo/:/var/lib/minetest/.minetest \
-v $(pwd)/../:/var/lib/minetest/.minetest/worlds/world/worldmods/mtinfo \
registry.gitlab.com/minetest/minetest/server:5.0.1
cp /tmp/mtinfo/worlds/world/mtinfo.json .