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