2015-09-08 19:36:28 +02:00
|
|
|
# On récupère la dernière version du jeu
|
2015-08-17 01:14:55 +02:00
|
|
|
cd /home/quentinbd/
|
2015-08-31 00:14:33 +02:00
|
|
|
git clone https://github.com/MinetestForFun/server-minetestforfun.git
|
|
|
|
echo "Clone de server-minetestforfun réussit."
|
|
|
|
cd /home/quentinbd/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
|
2015-08-17 01:14:55 +02:00
|
|
|
rm -R /home/quentinbd/upgrade-mff/olds-part/games/
|
|
|
|
rm -R /home/quentinbd/upgrade-mff/olds-part/mods/
|
|
|
|
echo "Ancienne sauvegarde de /mods et /games correctement supprimée."
|
|
|
|
|
|
|
|
cp -R /home/quentinbd/mff/mods/ /home/quentinbd/upgrade-mff/olds-part/
|
|
|
|
cp -R /home/quentinbd/mff/games/ /home/quentinbd/upgrade-mff/olds-part/
|
|
|
|
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
|
2015-08-17 01:14:55 +02:00
|
|
|
rm -R /home/quentinbd/mff/games/
|
|
|
|
rm -R /home/quentinbd/mff/mods/
|
|
|
|
mkdir /home/quentinbd/mff/games/
|
2015-08-31 00:14:33 +02:00
|
|
|
cp -R /home/quentinbd/server-minetestforfun/minetestforfun_game/ /home/quentinbd/mff/games/
|
|
|
|
cp -R /home/quentinbd/server-minetestforfun/mods/ /home/quentinbd/mff/
|
2015-08-17 01:14:55 +02:00
|
|
|
echo "Nouveaux /mods et /games correctement déplacés"
|
|
|
|
|
2015-09-08 19:36:28 +02:00
|
|
|
# On MAJ le minetest.conf, world.mt, random_messages et le news.txt
|
|
|
|
mkdir /home/quentinbd/mff/worlds/minetestforfun/
|
|
|
|
rm /home/quentinbd/mff-hg/minetest.conf
|
2015-09-08 19:29:20 +02:00
|
|
|
rm /home/quentinbd/mff/worlds/minetestforfun/world.mt
|
2015-09-08 19:36:28 +02:00
|
|
|
rm /home/quentinbd/mff/worlds/minetestforfun/random_messages
|
|
|
|
rm /home/quentinbd/mff/worlds/minetestforfun/news.txt
|
|
|
|
# On les remet
|
|
|
|
cp /home/quentinbd/server-minetestforfun/minetest.conf /home/quentinbd/mff/
|
2015-09-08 19:29:20 +02:00
|
|
|
cp /home/quentinbd/server-minetestforfun/worlds/minetestforfun/world.mt /home/quentinbd/mff/worlds/minetestforfun/
|
2015-09-08 19:36:28 +02:00
|
|
|
cp /home/quentinbd/server-minetestforfun/worlds/minetestforfun/random_messages /home/quentinbd/mff/worlds/minetestforfun/
|
|
|
|
cp /home/quentinbd/server-minetestforfun/worlds/minetestforfun/news.txt /home/quentinbd/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
|
|
|
|
rm -R /home/quentinbd/mff/mods/irc/
|
2015-09-08 19:29:20 +02:00
|
|
|
cp -R /home/quentinbd/server-minetestforfun/other_things/irc-old-save/ /home/quentinbd/mff/mods/
|
2015-08-17 01:14:55 +02:00
|
|
|
mv /home/quentinbd/mff/mods/irc-old-save/ /home/quentinbd/mff/mods/irc/
|
|
|
|
echo "TEMPORAIRE - ré-ajout de l'ancien mod irc"
|
|
|
|
|
2015-09-08 19:29:20 +02:00
|
|
|
# Suppression du dossier cloné
|
|
|
|
rm -Rf /home/quentinbd/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
|
2015-09-08 19:36:28 +02:00
|
|
|
chown -R quentinbd:quentinbd /home/quentinbd/mff/
|
|
|
|
chmod -R 755 /home/quentinbd/mff/
|
2015-08-17 01:14:55 +02:00
|
|
|
echo "ré-attribution des droits à quentinbd:quentinbd"
|