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

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

View File

@ -235,12 +235,6 @@ install_world() {
createdb players-$pg_dbname createdb players-$pg_dbname
fi fi
if [[ $ver == "1.1" || $ver == "stable" || $ver == "dev" ]]; then
echo "auth_backend = sqlite3" >> world.mt
fi
ln -s $(pwd)/world.mt minetest/worlds/$world_name/world.mt
./upgrade.sh -w $world_name -b $ver ./upgrade.sh -w $world_name -b $ver
mkdir -p minetest/worlds/$world_name/runes mkdir -p minetest/worlds/$world_name/runes

View File

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