mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-23 16:30:19 +01:00
Updates scripts for creative server
This commit is contained in:
parent
6f34a2c574
commit
56ba5a08f4
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
DEBUG='/home/quentinbd/script/debug-mff-creative.txt'
|
||||
MOREDEBUG='/home/quentinbd/script/moredebug-mff-creative.txt'
|
||||
|
||||
cd /home/quentinbd/mff-creative
|
||||
|
||||
while true
|
||||
do
|
||||
sleep 5
|
||||
|
||||
echo "----------------------" >>$MOREDEBUG
|
||||
echo "Server restarted at "`date` >>$MOREDEBUG
|
||||
echo "----------------------" >>$MOREDEBUG
|
||||
|
||||
echo "0" >/tmp/players_c.txt
|
||||
|
||||
/home/quentinbd/mff-creative/bin/minetestserver \
|
||||
--world /home/quentinbd/mff-creative/worlds/minetestforfun-creative/ \
|
||||
--config /home/quentinbd/mff-creative/minetest.conf \
|
||||
--gameid minetestforfun_creative \
|
||||
--port 30091 \
|
||||
# --logfile $DEBUG
|
||||
|
||||
sleep 25
|
||||
done &>> $MOREDEBUG
|
@ -1,26 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
DEBUG='/home/quentinbd/script/debug-mff-magichet.txt'
|
||||
MOREDEBUG='/home/quentinbd/script/moredebug-mff-magichet.txt'
|
||||
|
||||
cd /home/quentinbd/mff-magichet
|
||||
|
||||
while true
|
||||
do
|
||||
sleep 5
|
||||
|
||||
echo "----------------------" >>$MOREDEBUG
|
||||
echo "Server restarted at "`date` >>$MOREDEBUG
|
||||
echo "----------------------" >>$MOREDEBUG
|
||||
|
||||
echo "0" >/tmp/players_c.txt
|
||||
|
||||
/home/quentinbd/mff-magichet/bin/minetestserver \
|
||||
--world /home/quentinbd/mff-magichet/worlds/minetestforfun-magichet/ \
|
||||
--config /home/quentinbd/mff-magichet/minetest.conf \
|
||||
--gameid minetestforfun_magichet \
|
||||
--port 30091 \
|
||||
# --logfile $DEBUG
|
||||
|
||||
sleep 25
|
||||
done &>> $MOREDEBUG
|
@ -17,15 +17,15 @@ echo "Sauvegarde de /mods et /games correctement effectuée."
|
||||
# On MAJ les nouveaux minetest/games et minetest/mods
|
||||
rm -R /home/quentinbd/mff-creative/mods/
|
||||
rm -R /home/quentinbd/mff-creative/games/
|
||||
mkdir /home/quentinbd/mff-creative/games/
|
||||
mkdir /home/quentinbd/server-minetestforfun-creative/games
|
||||
mkdir /home/quentinbd/mff-creative/games/minetestforfun_creative/
|
||||
mkdir /home/quentinbd/mff-creative/games/minetestforfun_creative/mods/
|
||||
mkdir -p /home/quentinbd/mff-creative/games/
|
||||
mkdir -p /home/quentinbd/server-minetestforfun-creative/games
|
||||
mkdir -p /home/quentinbd/mff-creative/games/minetestforfun_creative/
|
||||
mkdir -p /home/quentinbd/mff-creative/games/minetestforfun_creative/mods/
|
||||
cp -R /home/quentinbd/server-minetestforfun-creative/mods/ /home/quentinbd/mff-creative/games/minetestforfun_creative/
|
||||
echo "Nouveaux /mods et /games correctement déplacés"
|
||||
|
||||
# On MAJ le minetest.conf, game.conf, world.mt, forbidden_names, et le random_messages
|
||||
mkdir /home/quentinbd/mff-creative/worlds/minetestforfun-creative/
|
||||
# On MAJ le minetest.conf, game.conf, world.mt, random_messages, et le forbidden_names
|
||||
mkdir -p /home/quentinbd/mff-creative/worlds/minetestforfun-creative/
|
||||
rm /home/quentinbd/mff-creative/minetest.conf
|
||||
rm /home/quentinbd/mff-creative/worlds/minetestforfun-creative/world.mt
|
||||
rm /home/quentinbd/mff-creative/worlds/minetestforfun-creative/random_messages
|
||||
@ -36,7 +36,7 @@ cp /home/quentinbd/server-minetestforfun-creative/game.conf /home/quentinbd/mff-
|
||||
#cp /home/quentinbd/server-minetestforfun-creative/worlds/minetestforfun-creative/world.mt /home/quentinbd/mff-creative/worlds/minetestforfun-creative/
|
||||
cp /home/quentinbd/server-minetestforfun-creative/worlds/minetestforfun-creative/random_messages /home/quentinbd/mff-creative/worlds/minetestforfun-creative/
|
||||
cp /home/quentinbd/server-minetestforfun-creative/worlds/minetestforfun-creative/forbidden_names.txt /home/quentinbd/mff-creative/worlds/minetestforfun-creative/
|
||||
echo "Nouveau 'minetest.conf, game.conf, world.mt, et le random_messages' correctement déplacé"
|
||||
echo "Nouveau minetest.conf, game.conf, world.mt, random_messages, et le forbidden_names correctement déplacé"
|
||||
|
||||
# Suppression du dossier cloné
|
||||
rm -Rf /home/quentinbd/server-minetestforfun-creative/
|
||||
|
@ -17,15 +17,15 @@ echo "Sauvegarde de /mods et /games correctement effectuée."
|
||||
# On MAJ les nouveaux minetest/games et minetest/mods
|
||||
rm -R /home/quentinbd/mff-hg/mods/
|
||||
rm -R /home/quentinbd/mff-hg/games/
|
||||
mkdir /home/quentinbd/mff-hg/games/
|
||||
mkdir /home/quentinbd/server-minetestforfun-hungry_games/games
|
||||
mkdir /home/quentinbd/mff-hg/games/minetestforfun_hg/
|
||||
mkdir /home/quentinbd/mff-hg/games/minetestforfun_hg/mods/
|
||||
mkdir -p /home/quentinbd/mff-hg/games/
|
||||
mkdir -p /home/quentinbd/server-minetestforfun-hungry_games/games
|
||||
mkdir -p /home/quentinbd/mff-hg/games/minetestforfun_hg/
|
||||
mkdir -p /home/quentinbd/mff-hg/games/minetestforfun_hg/mods/
|
||||
cp -R /home/quentinbd/server-minetestforfun-hungry_games/mods/ /home/quentinbd/mff-hg/games/minetestforfun_hg/
|
||||
echo "Nouveaux /mods et /games correctement déplacés"
|
||||
|
||||
# On MAJ le minetest.conf, game.conf, world.mt, le forbidden_names, et le random_messages
|
||||
mkdir /home/quentinbd/mff-hg/worlds/minetestforfun-hg/
|
||||
# On MAJ le minetest.conf, world.mt, random_messages, top_config.txt, et le forbidden_names
|
||||
mkdir -p /home/quentinbd/mff-hg/worlds/minetestforfun-hg/
|
||||
rm /home/quentinbd/mff-hg/minetest.conf
|
||||
rm /home/quentinbd/mff-hg/worlds/minetestforfun-hg/world.mt
|
||||
rm /home/quentinbd/mff-hg/worlds/minetestforfun-hg/random_messages
|
||||
@ -39,7 +39,7 @@ cp /home/quentinbd/server-minetestforfun-hungry_games/game.conf /home/quentinbd/
|
||||
cp /home/quentinbd/server-minetestforfun-hungry_games/worlds/minetestforfun-hg/random_messages /home/quentinbd/mff-hg/worlds/minetestforfun-hg/
|
||||
cp /home/quentinbd/server-minetestforfun-hungry_games/worlds/minetestforfun-hg/top_config.txt /home/quentinbd/mff-hg/worlds/minetestforfun-hg/
|
||||
cp /home/quentinbd/server-minetestforfun-hungry_games/worlds/minetestforfun-hg/forbidden_names.txt /home/quentinbd/mff-hg/worlds/minetestforfun-hg/
|
||||
echo "Nouveau 'minetest.conf, game.conf et le random_messages' correctement déplacé"
|
||||
echo "Nouveau minetest.conf, world.mt, random_messages, top_config.txt, et le forbidden_names correctement déplacé"
|
||||
|
||||
# Suppression du dossier cloné
|
||||
rm -Rf /home/quentinbd/server-minetestforfun-hungry_games/
|
||||
|
@ -17,15 +17,15 @@ echo "Sauvegarde de /mods et /games correctement effectuée."
|
||||
# On MAJ les nouveaux minetest/games et minetest/mods
|
||||
rm -R /home/quentinbd/mff-skyblock/mods/
|
||||
rm -R /home/quentinbd/mff-skyblock/games/
|
||||
mkdir /home/quentinbd/mff-skyblock/games/
|
||||
mkdir /home/quentinbd/server-minetestforfun-skyblock/games
|
||||
mkdir /home/quentinbd/mff-skyblock/games/minetestforfun_skyblock/
|
||||
mkdir /home/quentinbd/mff-skyblock/games/minetestforfun_skyblock/mods/
|
||||
mkdir -p /home/quentinbd/mff-skyblock/games/
|
||||
mkdir -p /home/quentinbd/server-minetestforfun-skyblock/games
|
||||
mkdir -p /home/quentinbd/mff-skyblock/games/minetestforfun_skyblock/
|
||||
mkdir -p /home/quentinbd/mff-skyblock/games/minetestforfun_skyblock/mods/
|
||||
cp -R /home/quentinbd/server-minetestforfun-skyblock/mods/ /home/quentinbd/mff-skyblock/games/minetestforfun_skyblock/
|
||||
echo "Nouveaux /mods et /games correctement déplacés"
|
||||
|
||||
# On MAJ le minetest.conf, game.conf, world.mt, le forbidden_names, et le random_messages
|
||||
mkdir /home/quentinbd/mff-skyblock/worlds/minetestforfun-skyblock/
|
||||
# On MAJ le minetest.conf, world.mt, le random_messages et le forbidden_names
|
||||
mkdir -p /home/quentinbd/mff-skyblock/worlds/minetestforfun-skyblock/
|
||||
rm /home/quentinbd/mff-skyblock/minetest.conf
|
||||
rm /home/quentinbd/mff-skyblock/worlds/minetestforfun-skyblock/world.mt
|
||||
rm /home/quentinbd/mff-skyblock/worlds/minetestforfun-skyblock/random_messages
|
||||
@ -37,7 +37,7 @@ cp /home/quentinbd/server-minetestforfun-skyblock/game.conf /home/quentinbd/mff-
|
||||
#cp /home/quentinbd/server-minetestforfun-skyblock/worlds/minetestforfun-skyblock/world.mt /home/quentinbd/mff-skyblock/worlds/minetestforfun-skyblock/
|
||||
cp /home/quentinbd/server-minetestforfun-skyblock/worlds/minetestforfun-skyblock/random_messages /home/quentinbd/mff-skyblock/worlds/minetestforfun-skyblock/
|
||||
cp /home/quentinbd/server-minetestforfun-skyblock/worlds/minetestforfun-skyblock/forbidden_names.txt /home/quentinbd/mff-skyblock/worlds/minetestforfun-skyblock/
|
||||
echo "Nouveau 'minetest.conf, game.conf, world.mt, et le random_messages' correctement déplacé"
|
||||
echo "Nouveau minetest.conf, world.mt, le random_messages et le forbidden_names correctement déplacé"
|
||||
|
||||
# Suppression du dossier cloné
|
||||
rm -Rf /home/quentinbd/server-minetestforfun-skyblock/
|
||||
|
@ -17,17 +17,18 @@ echo "Sauvegarde de /mods et /games correctement effectuée."
|
||||
# On MAJ les nouveaux minetest/games et minetest/mods
|
||||
rm -R /home/quentinbd/mff/games/
|
||||
rm -R /home/quentinbd/mff/mods/
|
||||
mkdir /home/quentinbd/mff/games/
|
||||
mkdir -p /home/quentinbd/mff/games/
|
||||
cp -R /home/quentinbd/server-minetestforfun/minetestforfun_game/ /home/quentinbd/mff/games/
|
||||
cp -R /home/quentinbd/server-minetestforfun/mods/ /home/quentinbd/mff/
|
||||
echo "Nouveaux /mods et /games correctement déplacés"
|
||||
|
||||
# On MAJ le minetest.conf, world.mt, random_messages, forbidden_names, et le news.txt
|
||||
mkdir /home/quentinbd/mff/worlds/minetestforfun/
|
||||
mkdir -p /home/quentinbd/mff/worlds/minetestforfun/
|
||||
rm /home/quentinbd/mff-hg/minetest.conf
|
||||
rm /home/quentinbd/mff/worlds/minetestforfun/world.mt
|
||||
rm /home/quentinbd/mff/worlds/minetestforfun/random_messages
|
||||
rm /home/quentinbd/mff/worlds/minetestforfun/news.txt
|
||||
rm /home/quentinbd/mff/worlds/minetestforfun/forbidden_names.txt
|
||||
# On les remet
|
||||
cp /home/quentinbd/server-minetestforfun/minetest.conf /home/quentinbd/mff/
|
||||
cp /home/quentinbd/server-minetestforfun/worlds/minetestforfun/world.mt /home/quentinbd/mff/worlds/minetestforfun/
|
||||
|
Loading…
Reference in New Issue
Block a user