Supprime la gestion des anciennes versions
* Supprime les fichiers devenu inutiles, * Introduit la gestion d'une version experimentale, au total 3 versions sont gérées : 'stable', 'dev', 'experimental'.
This commit is contained in:
53
install.sh
53
install.sh
@@ -32,11 +32,8 @@ 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)"
|
||||
echo -e "\tdev : Installation de la version en cours de developpement du serveur. Suivez les instructions... (Le plus à jour mais non Stable !)"
|
||||
echo -e "\texperimental : Installation d'une version experimentale du serveur. Suivez les instructions... (Attention, très experimental !)"
|
||||
exit 0
|
||||
}
|
||||
|
||||
@@ -98,17 +95,12 @@ install_minetest() {
|
||||
fi
|
||||
|
||||
if [[ ! -d minetest ]]; then
|
||||
local branch="-b master"
|
||||
if [[ $ver == "1.0" ]]; then
|
||||
branch="-b stable-0.4"
|
||||
elif [[ $ver == "1.1" ]]; then
|
||||
branch="-b 5.1.1"
|
||||
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
|
||||
local branch="-b 5.4.0"
|
||||
|
||||
if [[ $ver == "dev" ]]; then
|
||||
branch="-b stable-5"
|
||||
elif [[ $ver == "experimental" ]]; then
|
||||
branch="-b master"
|
||||
fi
|
||||
if [[ -n $ssh ]]; then
|
||||
git clone --depth 1 $branch $ssh\:minetest/minetest.git
|
||||
@@ -156,16 +148,11 @@ install_minetest_game() {
|
||||
|
||||
if [[ ! -d nalc_game ]]; then
|
||||
local branch="-b master"
|
||||
if [[ $ver == "1.0" ]]; then
|
||||
branch="-b nalc-1.0"
|
||||
elif [[ $ver == "1.1" ]]; then
|
||||
branch="-b nalc-1.1"
|
||||
elif [[ $ver == "1.2" ]]; then
|
||||
branch="-b nalc-1.2"
|
||||
elif [[ $ver == "1.3" || $ver == "stable" ]]; then
|
||||
branch="-b master"
|
||||
elif [[ $ver == "dev" ]]; then
|
||||
branch="-b nalc-dev"
|
||||
|
||||
if [[ $ver == "dev" ]]; then
|
||||
branch="-b dev"
|
||||
elif [[ $ver == "experimental" ]]; then
|
||||
branch="-b experimental"
|
||||
fi
|
||||
git clone --depth 1 $branch $URL/nalc_game.git
|
||||
verif
|
||||
@@ -199,14 +186,8 @@ install_mods() {
|
||||
|
||||
if [[ $ver == "dev" ]]; then
|
||||
branch="dev"
|
||||
elif [[ $ver == "1.3" ]]; then
|
||||
branch="stable-1.3"
|
||||
elif [[ $ver == "1.2" ]]; then
|
||||
branch="stable-1.2"
|
||||
elif [[ $ver == "1.1" ]]; then
|
||||
branch="stable-1.1"
|
||||
elif [[ $ver == "1.0" ]]; then
|
||||
branch="stable-1.0"
|
||||
elif [[ $ver == "experimental" ]]; then
|
||||
branch="experimental"
|
||||
fi
|
||||
git clone --depth 1 -b $branch $URL/nalc-server-mods.git
|
||||
verif
|
||||
@@ -214,11 +195,7 @@ install_mods() {
|
||||
fi
|
||||
|
||||
if [[ -z $pg_dbname ]]; then
|
||||
if [[ $ver == "1.0" ]]; then
|
||||
cp worldmt-1.0.conf world.mt
|
||||
elif [[ $ver == "1.1" || $ver == "1.2" || $ver == "1.3" || $ver == "stable" || $ver == "dev" ]]; then
|
||||
cp worldmt-1.1.conf world.mt
|
||||
fi
|
||||
cp worldmt-1.1.conf world.mt
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -314,7 +291,7 @@ init() {
|
||||
|
||||
action() {
|
||||
local arg=$(strip $1)
|
||||
if [[ $arg == "dev" || $arg == "stable" || $arg == "1.0" || $arg == "1.1" || $arg == "1.2" || $arg == "1.3" ]]; then
|
||||
if [[ $arg == "dev" || $arg == "stable" || $arg == "experimental" ]]; then
|
||||
init $arg
|
||||
else
|
||||
error
|
||||
|
||||
Reference in New Issue
Block a user