5.8.0 updates and a little more config friendlyness
This commit is contained in:
parent
46548688bf
commit
acb67edf25
3 changed files with 11 additions and 7 deletions
6
buildstable.bash
Normal file → Executable file
6
buildstable.bash
Normal file → Executable file
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
# wget https://github.com/minetest/minetest/archive/master.tar.gz
|
||||
wget https://github.com/minetest/minetest/archive/refs/tags/5.7.0.tar.gz
|
||||
tar xf 5.7.0.tar.gz
|
||||
cd minetest-5.7.0
|
||||
wget https://github.com/minetest/minetest/archive/refs/tags/5.8.0.tar.gz
|
||||
tar xf 5.8.0.tar.gz
|
||||
cd minetest-5.8.0
|
||||
cd games/
|
||||
wget https://github.com/minetest/minetest_game/archive/master.tar.gz
|
||||
tar xf master.tar.gz
|
||||
|
|
10
server.bash
10
server.bash
|
@ -1,14 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
basedir=/home/kake26/minetest-5.8.0
|
||||
worlddir=/home/kake26/minetest/minetest-server/.minetest/worlds/world2
|
||||
confdir=/home/kake26/minetest
|
||||
# script to start and stop minetest server
|
||||
|
||||
|
||||
if [[ $1 == "start" ]]
|
||||
then
|
||||
echo "STARTING"
|
||||
/home/kake26/minetest-5.7.0/bin/minetestserver --quiet --logfile /home/kake26/minetest/minetest.log --config /home/kake26/minetest/conf/minetest.conf --world /home/kake26/minetest/minetest-server/.minetest/worlds/world2/ &
|
||||
$basedir/bin/minetestserver --quiet --logfile $basedir/minetest.log --config $confdir/conf/minetest.conf --world $worlddir &
|
||||
pid=$!
|
||||
echo $pid > /home/kake26/minetest/mintest.pid
|
||||
echo $pid > $basedir/mintest.pid
|
||||
fi
|
||||
|
||||
if pidof minetestserver
|
||||
|
@ -17,7 +21,7 @@ then
|
|||
echo "OK"
|
||||
else
|
||||
# Seriously why not
|
||||
/home/kake26/minetest-5.7.0/bin/minetestserver --quiet --logfile /home/kake26/minetest/minetest.log --config /home/kake26/minetest/conf/minetest.conf --world /home/kake26/minetest/minetest-server/.minetest/worlds/world2/ &
|
||||
$basedir/bin/minetestserver --quiet --logfile $confdir/minetest.log --config $confdir/conf/minetest.conf --world $worlddir &
|
||||
fi
|
||||
|
||||
if [[ $1 == "stop" ]]
|
||||
|
|
|
@ -13,7 +13,7 @@ use Storable;
|
|||
|
||||
$updfile = "index.json"; # I could use JSON here, but it might be easier to abuse jq
|
||||
$updlsturl = "https://content.minetest.net/api/packages/"; # give use a json file of everything available
|
||||
$modpath = "/home/kake26/minetest-5.7.0/mods"; # where your server stores its mods
|
||||
$modpath = "/home/kake26/minetest-5.8.0/mods"; # where your server stores its mods
|
||||
|
||||
sub chk_update () {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue