1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 01:30:38 +01:00

Update upgrade-part-mff-hg.sh

This commit is contained in:
Ombridride 2015-08-31 00:18:42 +02:00
parent 3fddad3a10
commit 1b4bf1311c

View File

@ -1,8 +1,8 @@
# on récupère la dernière version du jeu
cd /home/quentinbd/
git clone https://github.com/MinetestForFun/hungry_games.git
git clone https://github.com/MinetestForFun/server-minetestforfun-hungry_games.git
echo "Clone de minetest-minetestforfun-server réussit."
cd /home/quentinbd/hungry_games/
cd /home/quentinbd/server-minetestforfun-hungry_games/
git submodule update --init --recursive
# on sauvegarde l'ancien subgame mff-hg
@ -15,30 +15,33 @@ echo "Sauvegarde du subgame correctement effectuée."
# on MAJ le novueau subgame
rm -Rf /home/quentinbd/mff-hg/games/
mkdir /home/quentinbd/mff-hg/games/
cp -R /home/quentinbd/hungry_games/ /home/quentinbd/mff-hg/games/
cp -R /home/quentinbd/server-minetestforfun-hungry_games/ /home/quentinbd/mff-hg/games/
echo "Nouveau subgame correctement déplacé."
# on MAJ les news, random_messages et le world.mt
# on MAJ le random_messages et le world.mt
#rm /home/quentinbd/mff/worlds/minetestforfun/news.txt
#rm /home/quentinbd/mff/worlds/minetestforfun/random_messages
mkdir /home/quentinbd/mff-hg/worlds/minetestforfun-hg/
mv /home/quentinbd/mff-hg/worlds/* /home/quentinbd/mff-hg/worlds/minetestforfun-hg/
rm /home/quentinbd/mff-hg/worlds/minetestforfun-hg/world.mt
rm /home/quentinbd/mff-hg/games/hungry_games/worlds/minetestforfun-hg/random_messages
rm /home/quentinbd/mff-hg/games/hungry_games/worlds/minetestforfun-hg/world.mt
rm /home/quentinbd/mff-hg/minetest.conf
#cp /home/quentinbd/hungry_games/worlds/minetestforfun/news.txt /home/quentinbd/mff/worlds/minetestforfun/
cp /home/quentinbd/hungry_games/worlds/minetestforfun-hg/random_messages /home/quentinbd/mff-hg/worlds/minetestforfun-hg/
cp /home/quentinbd/hungry_games/worlds/minetestforfun-hg/world.mt /home/quentinbd/mff-hg/worlds/minetestforfun-hg/
cp /home/quentinbd/hungry_games/minetest.conf /home/quentinbd/mff-hg/minetest.conf
echo "Nouveau world.mt correctement déplacé"
rm /home/quentinbd/mff-hg/games/hungry_games/worlds/minetestforfun-hg/top_config.txt
#cp /home/quentinbd/server-minetestforfun-hungry_games/worlds/minetestforfun/news.txt /home/quentinbd/mff/worlds/minetestforfun/
cp /home/quentinbd/server-minetestforfun-hungry_games/worlds/minetestforfun-hg/random_messages /home/quentinbd/mff-hg/games/hungry_games/worlds/minetestforfun-hg/
cp /home/quentinbd/server-minetestforfun-hungry_games/worlds/minetestforfun-hg/world.mt /home/quentinbd/mff-hg/games/hungry_games/worlds/minetestforfun-hg/
cp /home/quentinbd/server-minetestforfun-hungry_games/minetest.conf /home/quentinbd/mff-hg/
cp /home/quentinbd/server-minetestforfun-hungry_games/worlds/minetestforfun-hg/top_config.txt /home/quentinbd/mff-hg/games/hungry_games/worlds/minetestforfun-hg/
echo "Nouveau 'random_messages/world.mt/minetest.conf/top_config.txt' correctement déplacé"
# Suppression du dossier cloné
rm -Rf /home/quentinbd/hungry_games/
rm -Rf /home/quentinbd/server-minetestforfun-hungry_games/
echo "Bravo ! mff-hg/mods et mff-hg/games maintenant à jour"
# TEMPORAIRE - ré-ajout de l'ancien mod irc
rm -R /home/quentinbd/mff-hg/games/hungry_games/mods/irc/
rm -R /home/quentinbd/mff-hg/games/hungry_games/mods/irc_commands/
echo "TEMPORAIRE - Suppression de l'irc car crash"
#rm -R /home/quentinbd/mff-hg/games/hungry_games/mods/irc/
#rm -R /home/quentinbd/mff-hg/games/hungry_games/mods/irc_commands/
#echo "TEMPORAIRE - Suppression de l'irc car crash"
#cp -R /home/quentinbd/upgrade-mff/irc-old-save/ /home/quentinbd/mff-hg/games/hungry_games/mods/
#mv /home/quentinbd/mff-hg/games/hungry_games/mods/irc-old-save/ /home/quentinbd/mff-hg/games/hungry_games/mods/irc/
#echo "TEMPORAIRE - ré-ajout de l'ancien mod irc"