Ajoute la mise à jour de minetest.conf depuis script upgrade.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user