Ajout settings moretrees (dev) + guide serveur (loin d'être terminé)
This commit is contained in:
67
upgrade.sh
67
upgrade.sh
@@ -170,7 +170,7 @@ update_world() {
|
||||
fi
|
||||
|
||||
if [[ $WORLD_FILE == "all" ]]; then
|
||||
WORLD_FILE="news technic fbn fbnp bitchange christmas randommsg worldmt"
|
||||
WORLD_FILE="moretrees news technic fbn fbnp bitchange christmas randommsg worldmt"
|
||||
fi
|
||||
|
||||
for w_file in $WORLD_FILE; do
|
||||
@@ -178,37 +178,40 @@ update_world() {
|
||||
local file_dest=""
|
||||
local do_copy=1
|
||||
case $w_file in
|
||||
news)
|
||||
file_dest=$world_dest/news.txt
|
||||
file=$world_repos/news-$BRANCH.txt;;
|
||||
technic)
|
||||
file_dest=$world_dest/technic.conf
|
||||
file=$world_repos/technic-$BRANCH.conf;;
|
||||
fbn)
|
||||
file_dest=$world_dest/forbidden_names.txt
|
||||
file=$world_repos/forbidden_names-$BRANCH.txt;;
|
||||
fbnp)
|
||||
file_dest=$world_dest/forbidden_names_patterns.txt
|
||||
file=$world_repos/forbidden_names_patterns-$BRANCH.txt;;
|
||||
bitchange)
|
||||
file_dest=$world_dest/bitchange_config.txt
|
||||
file=$world_repos/bitchange_config-$BRANCH.txt;;
|
||||
christmas)
|
||||
file_dest=$world_dest/christmas_craft.conf
|
||||
file=$world_repos/christmas_craft-$BRANCH.conf;;
|
||||
randommsg)
|
||||
file_dest=$world_dest/random_messages
|
||||
file=$world_repos/random_messages-$BRANCH;;
|
||||
worldmt)
|
||||
do_copy=0
|
||||
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;;
|
||||
*)
|
||||
error;;
|
||||
moretrees)
|
||||
file_dest=$world_dest/moretrees_settings.txt
|
||||
file=$world_repos/moretrees_settings-$BRANCH.txt;;
|
||||
news)
|
||||
file_dest=$world_dest/news.txt
|
||||
file=$world_repos/news-$BRANCH.txt;;
|
||||
technic)
|
||||
file_dest=$world_dest/technic.conf
|
||||
file=$world_repos/technic-$BRANCH.conf;;
|
||||
fbn)
|
||||
file_dest=$world_dest/forbidden_names.txt
|
||||
file=$world_repos/forbidden_names-$BRANCH.txt;;
|
||||
fbnp)
|
||||
file_dest=$world_dest/forbidden_names_patterns.txt
|
||||
file=$world_repos/forbidden_names_patterns-$BRANCH.txt;;
|
||||
bitchange)
|
||||
file_dest=$world_dest/bitchange_config.txt
|
||||
file=$world_repos/bitchange_config-$BRANCH.txt;;
|
||||
christmas)
|
||||
file_dest=$world_dest/christmas_craft.conf
|
||||
file=$world_repos/christmas_craft-$BRANCH.conf;;
|
||||
randommsg)
|
||||
file_dest=$world_dest/random_messages
|
||||
file=$world_repos/random_messages-$BRANCH;;
|
||||
worldmt)
|
||||
do_copy=0
|
||||
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;;
|
||||
*)
|
||||
error;;
|
||||
esac
|
||||
|
||||
if [[ $do_copy -eq 1 ]]; then
|
||||
|
||||
Reference in New Issue
Block a user