5.8.0 updates and a little more config friendlyness

This commit is contained in:
kake26 2024-01-18 20:55:35 -06:00
parent 46548688bf
commit acb67edf25
3 changed files with 11 additions and 7 deletions

View file

@ -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" ]]