From 640efc2ea13749e19738207d75948e0d98f8d881 Mon Sep 17 00:00:00 2001 From: sys4 Date: Sun, 28 Apr 2019 23:23:32 +0200 Subject: [PATCH] Correction de la creation du world.mt --- install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 71256ab..1a2cf42 100755 --- a/install.sh +++ b/install.sh @@ -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