mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
Update upgrade-part-mff-hg.sh
This commit is contained in:
parent
3fddad3a10
commit
1b4bf1311c
@ -1,8 +1,8 @@
|
|||||||
# on récupère la dernière version du jeu
|
# on récupère la dernière version du jeu
|
||||||
cd /home/quentinbd/
|
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."
|
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
|
git submodule update --init --recursive
|
||||||
|
|
||||||
# on sauvegarde l'ancien subgame mff-hg
|
# on sauvegarde l'ancien subgame mff-hg
|
||||||
@ -15,30 +15,33 @@ echo "Sauvegarde du subgame correctement effectuée."
|
|||||||
# on MAJ le novueau subgame
|
# on MAJ le novueau subgame
|
||||||
rm -Rf /home/quentinbd/mff-hg/games/
|
rm -Rf /home/quentinbd/mff-hg/games/
|
||||||
mkdir /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é."
|
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/news.txt
|
||||||
#rm /home/quentinbd/mff/worlds/minetestforfun/random_messages
|
#rm /home/quentinbd/mff/worlds/minetestforfun/random_messages
|
||||||
mkdir /home/quentinbd/mff-hg/worlds/minetestforfun-hg/
|
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/games/hungry_games/worlds/minetestforfun-hg/random_messages
|
||||||
rm /home/quentinbd/mff-hg/worlds/minetestforfun-hg/world.mt
|
rm /home/quentinbd/mff-hg/games/hungry_games/worlds/minetestforfun-hg/world.mt
|
||||||
rm /home/quentinbd/mff-hg/minetest.conf
|
rm /home/quentinbd/mff-hg/minetest.conf
|
||||||
#cp /home/quentinbd/hungry_games/worlds/minetestforfun/news.txt /home/quentinbd/mff/worlds/minetestforfun/
|
rm /home/quentinbd/mff-hg/games/hungry_games/worlds/minetestforfun-hg/top_config.txt
|
||||||
cp /home/quentinbd/hungry_games/worlds/minetestforfun-hg/random_messages /home/quentinbd/mff-hg/worlds/minetestforfun-hg/
|
#cp /home/quentinbd/server-minetestforfun-hungry_games/worlds/minetestforfun/news.txt /home/quentinbd/mff/worlds/minetestforfun/
|
||||||
cp /home/quentinbd/hungry_games/worlds/minetestforfun-hg/world.mt /home/quentinbd/mff-hg/worlds/minetestforfun-hg/
|
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/hungry_games/minetest.conf /home/quentinbd/mff-hg/minetest.conf
|
cp /home/quentinbd/server-minetestforfun-hungry_games/worlds/minetestforfun-hg/world.mt /home/quentinbd/mff-hg/games/hungry_games/worlds/minetestforfun-hg/
|
||||||
echo "Nouveau world.mt correctement déplacé"
|
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é
|
# 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"
|
echo "Bravo ! mff-hg/mods et mff-hg/games maintenant à jour"
|
||||||
|
|
||||||
# TEMPORAIRE - ré-ajout de l'ancien mod irc
|
# 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/
|
||||||
rm -R /home/quentinbd/mff-hg/games/hungry_games/mods/irc_commands/
|
#rm -R /home/quentinbd/mff-hg/games/hungry_games/mods/irc_commands/
|
||||||
echo "TEMPORAIRE - Suppression de l'irc car crash"
|
#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/
|
#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/
|
#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"
|
#echo "TEMPORAIRE - ré-ajout de l'ancien mod irc"
|
||||||
|
Loading…
Reference in New Issue
Block a user