Correction de la creation du world.mt
This commit is contained in:
parent
5cdcbeee2c
commit
640efc2ea1
@ -74,9 +74,6 @@ postgresql() {
|
|||||||
echo "gameid = nalc_game" > world.mt
|
echo "gameid = nalc_game" > world.mt
|
||||||
echo "backend = postgresql" >> world.mt
|
echo "backend = postgresql" >> world.mt
|
||||||
echo "player_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_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
|
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
|
createdb players-$pg_dbname
|
||||||
fi
|
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
|
ln -s $(pwd)/world.mt minetest/worlds/$world_name/world.mt
|
||||||
|
|
||||||
./upgrade.sh -w $world_name -b $ver
|
./upgrade.sh -w $world_name -b $ver
|
||||||
|
Loading…
Reference in New Issue
Block a user