mirror of
https://github.com/TotalFreedomMC/TF-Scripts.git
synced 2024-12-31 20:22:20 +00:00
And then we were done
This should now work
This commit is contained in:
parent
f1e31be554
commit
5bd80cad35
1 changed files with 8 additions and 6 deletions
|
@ -24,11 +24,14 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "/home/tfserver/template/$1" ]
|
if [ -d "/home/tfserver/template/$1" ]
|
||||||
then
|
then
|
||||||
echo "The folder exists so this would run."
|
|
||||||
if screen -list | grep -q "$SCREEN_NAME";
|
if screen -list | grep -q "$SCREEN_NAME";
|
||||||
then
|
then
|
||||||
source /home/tfserver/stop.sh
|
source /home/tfserver/stop.sh
|
||||||
|
if screen -list | grep -q "$SCREEN_NAME";
|
||||||
|
then
|
||||||
|
source /home/tfserver/stop.sh
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
# Write the reset file to disk so we make sure if someone is stupid and tries to now re-start the server, the world doesn't fucking end...
|
# Write the reset file to disk so we make sure if someone is stupid and tries to now re-start the server, the world doesn't fucking end...
|
||||||
touch $RESET_FILE
|
touch $RESET_FILE
|
||||||
|
@ -55,10 +58,9 @@ else
|
||||||
mysql $CO_DATABASE -h $DB_HOSTNAME < ./temp.sql
|
mysql $CO_DATABASE -h $DB_HOSTNAME < ./temp.sql
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Need to add something around handling the MySQL shit here
|
cp -R /home/tfserver/template/$1 /home/tfserver/world
|
||||||
|
|
||||||
echo "Something Something restore the template to be the world, something something I'll get around to this..."
|
# Remove that lock file now that we actually want to start the server up.
|
||||||
sleep 20
|
|
||||||
rm -f $RESET_FILE
|
rm -f $RESET_FILE
|
||||||
source /home/tfserver/start.sh
|
source /home/tfserver/start.sh
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue