Corrige la (re)génération du fichier world.mt
This commit is contained in:
@@ -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;;
|
||||
|
||||
Reference in New Issue
Block a user