Maj des fichiers pour la version 1.3

This commit is contained in:
2020-07-21 22:38:19 +02:00
parent ece4bbceb0
commit fccd6b1728
16 changed files with 980 additions and 12 deletions

View File

@@ -32,6 +32,7 @@ usage() {
echo -e "\t-p --postgresql\tSi vous voulez que le serveur soit configuré avec postgresql. Sinon leveldb par défaut."
echo "version :"
echo -e "\tstable : Installation du serveur compatible avec la dernière branche stable de minetest. Suivez les instructions... (Recommandé)"
echo -e "\t1.3 : Installation du serveur compatible avec minetest-5.3. Suivez les instructions... (Stable)"
echo -e "\t1.2 : Installation du serveur compatible avec minetest-5.2. Suivez les instructions... (Stable)"
echo -e "\t1.1 : Installation du serveur depuis la branche 1.1 compatible Minetest 5.0. Suivez les instructions... (Stable)"
echo -e "\t1.0 : Installation du serveur compatible avec minetest-0.4.17.x. Suivez les instructions... (Stable)"
@@ -102,8 +103,10 @@ install_minetest() {
branch="-b stable-0.4"
elif [[ $ver == "1.1" ]]; then
branch="-b 5.1.1"
elif [[ $ver == "1.2" || $ver == "stable" ]]; then
elif [[ $ver == "1.2" ]]; then
branch="-b 5.2.0"
elif [[ $ver == "1.3" || $ver == "stable" ]]; then
branch="-b 5.3.0"
elif [[ $ver == "dev" ]]; then
branch="-b stable-5"
fi
@@ -157,8 +160,10 @@ install_minetest_game() {
branch="-b nalc-1.0"
elif [[ $ver == "1.1" ]]; then
branch="-b nalc-1.1"
elif [[ $ver == "1.2" || $ver == "stable" ]]; then
elif [[ $ver == "1.2" ]]; then
branch="-b nalc-1.2"
elif [[ $ver == "1.3" || $ver == "stable" ]]; then
branch="-b nalc-1.3"
elif [[ $ver == "dev" ]]; then
branch="-b nalc-dev"
fi
@@ -194,7 +199,9 @@ install_mods() {
if [[ $ver == "dev" ]]; then
branch="dev"
elif [[ $ver == "1.2" || $ver == "stable" ]]; then
elif [[ $ver == "1.3" || $ver == "stable" ]]; then
branch="stable-1.3"
elif [[ $ver == "1.2" ]]; then
branch="stable-1.2"
elif [[ $ver == "1.1" ]]; then
branch="stable-1.1"
@@ -209,7 +216,7 @@ install_mods() {
if [[ -z $pg_dbname ]]; then
if [[ $ver == "1.0" ]]; then
cp worldmt-1.0.conf world.mt
elif [[ $ver == "1.1" || $ver == "stable" || $ver == "dev" ]]; then
elif [[ $ver == "1.1" || $ver == "1.2" || $ver == "1.3" || $ver == "stable" || $ver == "dev" ]]; then
cp worldmt-1.1.conf world.mt
fi
fi
@@ -307,7 +314,7 @@ init() {
action() {
local arg=$(strip $1)
if [[ $arg == "dev" || $arg == "stable" || $arg == "1.0" || $arg == "1.1" || $arg == "1.2" ]]; then
if [[ $arg == "dev" || $arg == "stable" || $arg == "1.0" || $arg == "1.1" || $arg == "1.2" || $arg == "1.3" ]]; then
init $arg
else
error