2015-09-08 19:36:28 +02:00
|
|
|
# On récupère la dernière version du jeu
|
2017-03-12 15:39:36 +01:00
|
|
|
cd /home/vincent/jeux
|
2017-03-12 18:47:56 +01:00
|
|
|
git clone -b NALC2 --depth 1 https://github.com/sys4-fr/server-minetestforfun.git
|
2015-08-31 00:14:33 +02:00
|
|
|
echo "Clone de server-minetestforfun réussit."
|
2017-03-12 15:39:36 +01:00
|
|
|
cd /home/vincent/jeux/server-minetestforfun/
|
2015-08-17 01:14:55 +02:00
|
|
|
git submodule update --init --recursive
|
|
|
|
|
2015-09-08 19:36:28 +02:00
|
|
|
# On sauvegarde les anciens ../games et ../mods
|
2017-03-12 15:39:36 +01:00
|
|
|
rm -R /home/vincent/mff/upgrade-mff/olds-part/games/
|
|
|
|
rm -R /home/vincent/mff/upgrade-mff/olds-part/mods/
|
2015-08-17 01:14:55 +02:00
|
|
|
echo "Ancienne sauvegarde de /mods et /games correctement supprimée."
|
|
|
|
|
2017-03-12 15:39:36 +01:00
|
|
|
cp -R /home/vincent/jeux/mff/mods/ /home/vincent/mff/upgrade-mff/olds-part/
|
|
|
|
cp -R /home/vincent/jeux/mff/games/ /home/vincent/mff/upgrade-mff/olds-part/
|
2015-08-17 01:14:55 +02:00
|
|
|
echo "Sauvegarde de /mods et /games correctement effectuée."
|
|
|
|
|
2015-09-08 19:36:28 +02:00
|
|
|
# On MAJ les nouveaux minetest/games et minetest/mods
|
2017-03-12 15:39:36 +01:00
|
|
|
rm -R /home/vincent/jeux/mff/games/
|
|
|
|
rm -R /home/vincent/jeux/mff/mods/
|
|
|
|
mkdir -p /home/vincent/jeux/mff/games/
|
|
|
|
cp -R /home/vincent/jeux/server-minetestforfun/minetestforfun_game/ /home/vincent/jeux/mff/games/
|
|
|
|
cp -R /home/vincent/jeux/server-minetestforfun/mods/ /home/vincent/jeux/mff/
|
2015-08-17 01:14:55 +02:00
|
|
|
echo "Nouveaux /mods et /games correctement déplacés"
|
|
|
|
|
2015-09-15 12:34:12 +02:00
|
|
|
# On MAJ le minetest.conf, world.mt, random_messages, forbidden_names, et le news.txt
|
2017-03-12 15:39:36 +01:00
|
|
|
mkdir -p /home/vincent/jeux/mff/worlds/minetestforfun/
|
|
|
|
rm /home/vincent/jeux/mff/minetest.conf
|
|
|
|
rm /home/vincent/jeux/mff/worlds/minetestforfun/world.mt
|
|
|
|
rm /home/vincent/jeux/mff/worlds/minetestforfun/random_messages
|
|
|
|
rm /home/vincent/jeux/mff/worlds/minetestforfun/news.txt
|
|
|
|
rm /home/vincent/jeux/mff/worlds/minetestforfun/forbidden_names.txt
|
2015-09-08 19:36:28 +02:00
|
|
|
# On les remet
|
2017-03-12 15:39:36 +01:00
|
|
|
cp /home/vincent/jeux/server-minetestforfun/minetest.conf /home/vincent/jeux/mff/
|
|
|
|
cp /home/vincent/jeux/server-minetestforfun/worlds/minetestforfun/world.mt /home/vincent/jeux/mff/worlds/minetestforfun/
|
|
|
|
cp /home/vincent/jeux/server-minetestforfun/worlds/minetestforfun/random_messages /home/vincent/jeux/mff/worlds/minetestforfun/
|
|
|
|
cp /home/vincent/jeux/server-minetestforfun/worlds/minetestforfun/news.txt /home/vincent/jeux/mff/worlds/minetestforfun/
|
|
|
|
cp /home/vincent/jeux/server-minetestforfun/worlds/minetestforfun/forbidden_names.txt /home/vincent/jeux/mff/worlds/minetestforfun/
|
2015-08-17 01:14:55 +02:00
|
|
|
echo "Nouvelles news.txt, world.mt et random_messages correctement déplacé"
|
|
|
|
|
|
|
|
# TEMPORAIRE - ré-ajout de l'ancien mod irc
|
2015-10-26 17:09:50 +01:00
|
|
|
#rm -R /home/quentinbd/mff/mods/irc/
|
|
|
|
#cp -R /home/quentinbd/server-minetestforfun/other_things/irc-old-save/ /home/quentinbd/mff/mods/
|
|
|
|
#mv /home/quentinbd/mff/mods/irc-old-save/ /home/quentinbd/mff/mods/irc/
|
|
|
|
#echo "TEMPORAIRE - ré-ajout de l'ancien mod irc"
|
2015-08-17 01:14:55 +02:00
|
|
|
|
2015-09-08 19:29:20 +02:00
|
|
|
# Suppression du dossier cloné
|
2017-03-12 15:39:36 +01:00
|
|
|
rm -Rf /home/vincent/jeux/server-minetestforfun/
|
2015-09-08 19:36:28 +02:00
|
|
|
echo "Bravo ! mff/mods et mff/games maintenant à jour"
|
2015-09-08 19:29:20 +02:00
|
|
|
|
2015-08-17 01:14:55 +02:00
|
|
|
# On ré-attribut les droits à quentinbd et en 755
|
2017-03-12 15:39:36 +01:00
|
|
|
#chown -R quentinbd:quentinbd /home/quentinbd/mff/
|
|
|
|
#chmod -R 755 /home/quentinbd/mff/
|
|
|
|
#echo "ré-attribution des droits à quentinbd:quentinbd"
|