setup_fix
This commit is contained in:
parent
58dbfaa972
commit
d39f32c02f
2 changed files with 5 additions and 0 deletions
3
setup-mt
3
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
|
||||
|
|
2
test
Executable file
2
test
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
pwd
|
Loading…
Reference in a new issue