From 9ea9ba1c2fc7091ae988447be6753ce6e804393d Mon Sep 17 00:00:00 2001 From: root Date: Sat, 19 Jun 2021 18:33:12 +0200 Subject: [PATCH] example. run server minetest with minetest_test game --- minetest-server.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/minetest-server.sh b/minetest-server.sh index 77f1f05..64e0f47 100644 --- a/minetest-server.sh +++ b/minetest-server.sh @@ -14,6 +14,7 @@ main (){ extractMinetest compileMinetest copyConfMinetestServer + downloadMinetest_game } isOK (){ @@ -72,5 +73,14 @@ copyConfMinetestServer (){ isOK } +downloadMinetest_game (){ + taskName="Download example game. BASE GAME: minetest_game"; echo -e "\n[+][$taskName]" + rm -rf /usr/local/share/minetest/games/minetest_game + git clone https://github.com/minetest/minetest_game /usr/local/share/minetest/games/minetest_game + isOK +} + main +echo "To run the server. Example:" +echo "minetestserver --config /etc/minetest/minetest.conf --world /usr/local/share/minetest/games/"