From d39f32c02fb39863dbbdf5276efc755e7d206a58 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 26 Oct 2020 21:53:58 +0000 Subject: [PATCH] setup_fix --- setup-mt | 3 +++ test | 2 ++ 2 files changed, 5 insertions(+) create mode 100755 test diff --git a/setup-mt b/setup-mt index 20a3a772..8a572598 100755 --- a/setup-mt +++ b/setup-mt @@ -1,6 +1,8 @@ #!/bin/bash source config-file +install_pwd=$(pwd) + if [ $first_install = "y" ]; then echo "Create minetest user" useradd minetest @@ -99,6 +101,7 @@ echo "pgsql_connection = host=127.0.0.1 user=minetest password=$psql_minetest_us echo "pgsql_player_connection = host=127.0.0.1 user=minetest password=$psql_minetest_user_password dbname=minetest_players" >> /home/minetest/.minetest/worlds/world/world.mt echo "pgsql_auth_connection = host=127.0.0.1 user=minetest password=$psql_minetest_user_password dbname=minetest_auth" >> /home/minetest/.minetest/worlds/world/world.mt +cd "$install_pwd" cat mods-list >> /home/minetest/.minetest/worlds/world/world.mt cp -r mods /home/minetest/.minetest/mods diff --git a/test b/test new file mode 100755 index 00000000..1cc8df5a --- /dev/null +++ b/test @@ -0,0 +1,2 @@ +#!/bin/bash +pwd