Correction de la creation du world.mt

This commit is contained in:
Sys Quatre 2019-04-28 23:23:32 +02:00
parent 5cdcbeee2c
commit 640efc2ea1
1 changed files with 4 additions and 3 deletions

View File

@ -74,9 +74,6 @@ postgresql() {
echo "gameid = nalc_game" > world.mt
echo "backend = postgresql" >> world.mt
echo "player_backend = postgresql" >> world.mt
if [[ $ver == "1.1" || $ver == "stable" || $ver == "dev" ]]; then
echo "auth_backend = sqlite3" >> world.mt
fi
echo "pgsql_connection = host=$pg_url user=$pg_user password=$pg_password dbname=$pg_dbname" >> world.mt
echo "pgsql_player_connection = host=$pg_url user=$pg_user password=$pg_password dbname=players-$pg_dbname" >> world.mt
}
@ -214,6 +211,10 @@ install_world() {
createdb players-$pg_dbname
fi
if [[ $ver == "1.1" || $ver == "stable" || $ver == "dev" ]]; then
echo "auth_backend = sqlite3" >> world.mt
fi
ln -s $(pwd)/world.mt minetest/worlds/$world_name/world.mt
./upgrade.sh -w $world_name -b $ver