Ajoute la mise à jour de minetest.conf depuis script upgrade.sh

This commit is contained in:
2019-05-04 23:08:56 +02:00
parent 6f948958a8
commit 5acf42ef28
4 changed files with 612 additions and 2 deletions

View File

@@ -47,6 +47,7 @@ usage() {
echo -e "\tchristmas\tLes paramètres de christmas_craft"
echo -e "\trandommsg\tLes messages aléatoires"
echo -e "\tworldmt\tRégénère le fichier world.mt (peut-être utile avec l'option -m)"
echo -e "\tmtconf\tMet à jour le fichier minetest.conf"
echo "Exemples:"
echo -e "\tMise à jour des mods :"
echo -e "\t$ ./upgrade.sh -m"
@@ -169,7 +170,7 @@ update_world() {
fi
if [[ $WORLD_FILE == "all" ]]; then
WORLD_FILE="news technic fbn fbnp bitchange christmas randommsg worldmt"
WORLD_FILE="news technic fbn fbnp bitchange christmas randommsg worldmt mtconf"
fi
for w_file in $WORLD_FILE; do
@@ -201,6 +202,9 @@ update_world() {
worldmt)
do_copy=0
regen_worldmt;;
mtconf)
file_dest=$serverpath/minetest/minetest.conf
file=$serverpath/minetest-$BRANCH.conf;;
*)
error;;
esac