Corrige la (re)génération du fichier world.mt

This commit is contained in:
2019-12-13 23:11:17 +01:00
parent 60eafc9af1
commit 8c8e541090
2 changed files with 4 additions and 8 deletions

View File

@@ -114,7 +114,7 @@ regen_worldmt() {
if [[ -d $mods_path/$mod ]]; then
ln -s $mods_path/$mod $mods_minetest/$mod
if [[ -e $mods_path/$mod/modpack.txt ]]; then
if [[ -e $mods_path/$mod/modpack.txt || -e $mods_path/$mod/modpack.conf ]]; then
ls $mods_path/$mod | while read -r submod; do
if [[ -d $mods_path/$mod/$submod ]]; then
local mod_enable="true"
@@ -201,7 +201,9 @@ update_world() {
file=$world_repos/random_messages-$BRANCH;;
worldmt)
do_copy=0
regen_worldmt;;
regen_worldmt
rm -f $world_dest/world.mt
ln -s $serverpath/world.mt $world_dest/world.mt;;
mtconf) # Exception ici car n'est pas un fichier world. Doit être appelé seul.
file_dest=$serverpath/minetest/minetest.conf
file=$serverpath/minetest-$BRANCH.conf;;