setup_fix

This commit is contained in:
root 2020-10-26 21:53:58 +00:00
parent 58dbfaa972
commit d39f32c02f
2 changed files with 5 additions and 0 deletions

View file

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
source config-file source config-file
install_pwd=$(pwd)
if [ $first_install = "y" ]; then if [ $first_install = "y" ]; then
echo "Create minetest user" echo "Create minetest user"
useradd minetest 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_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 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 cat mods-list >> /home/minetest/.minetest/worlds/world/world.mt
cp -r mods /home/minetest/.minetest/mods cp -r mods /home/minetest/.minetest/mods

2
test Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
pwd