2015-09-02 23:03:50 +02:00
|
|
|
# on récupère la dernière version du jeu
|
|
|
|
cd /home/quentinbd/
|
|
|
|
git clone https://github.com/MinetestForFun/server-minetestforfun-skyblock.git
|
|
|
|
echo "Clone de server-minetestforfun-skyblock réussit."
|
|
|
|
cd /home/quentinbd/server-minetestforfun-skyblock/
|
|
|
|
git submodule update --init --recursive
|
|
|
|
|
|
|
|
# On sauvegarde les anciens ../games et ../mods
|
|
|
|
rm -R /home/quentinbd/upgrade-mff-skyblock/olds-part/games/
|
|
|
|
rm -R /home/quentinbd/upgrade-mff-skyblock/olds-part/mods/
|
|
|
|
echo "Ancienne sauvegarde de /mods et /games correctement supprimée."
|
|
|
|
|
|
|
|
cp -R /home/quentinbd/mff-skyblock/mods/ /home/quentinbd/upgrade-mff-skyblock/olds-part/
|
|
|
|
cp -R /home/quentinbd/mff-skyblock/games/ /home/quentinbd/upgrade-mff-skyblock/olds-part/
|
|
|
|
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/
|
2015-09-03 01:09:22 +02:00
|
|
|
rm -R /home/quentinbd/mff-skyblock/games/
|
2015-09-02 23:03:50 +02:00
|
|
|
mkdir /home/quentinbd/mff-skyblock/games/
|
2015-09-03 01:09:22 +02:00
|
|
|
mkdir /home/quentinbd/server-minetestforfun-skyblock/games
|
|
|
|
mkdir /home/quentinbd/mff-skyblock/games/minetestforfun_skyblock/
|
|
|
|
mkdir /home/quentinbd/mff-skyblock/games/minetestforfun_skyblock/mods/
|
|
|
|
cp -R /home/quentinbd/server-minetestforfun-skyblock/mods/ /home/quentinbd/mff-skyblock/games/minetestforfun_skyblock/
|
2015-09-02 23:03:50 +02:00
|
|
|
echo "Nouveaux /mods et /games correctement déplacés"
|
|
|
|
|
2015-09-15 12:34:12 +02:00
|
|
|
# On MAJ le minetest.conf, game.conf, world.mt, le forbidden_names, et le random_messages
|
2015-09-02 23:03:50 +02:00
|
|
|
mkdir /home/quentinbd/mff-skyblock/worlds/minetestforfun-skyblock/
|
|
|
|
rm /home/quentinbd/mff-skyblock/minetest.conf
|
2015-09-03 01:09:22 +02:00
|
|
|
rm /home/quentinbd/mff-skyblock/worlds/minetestforfun-skyblock/world.mt
|
|
|
|
rm /home/quentinbd/mff-skyblock/worlds/minetestforfun-skyblock/random_messages
|
2015-09-15 12:34:12 +02:00
|
|
|
rm /home/quentinbd/mff-skyblock/worlds/minetestforfun-skyblock/forbidden_names.txt
|
2015-09-02 23:03:50 +02:00
|
|
|
# On les remet
|
2015-09-03 01:09:22 +02:00
|
|
|
cp /home/quentinbd/server-minetestforfun-skyblock/minetest.conf /home/quentinbd/mff-skyblock/games/minetestforfun_skyblock/
|
2015-09-02 23:03:50 +02:00
|
|
|
cp /home/quentinbd/server-minetestforfun-skyblock/minetest.conf /home/quentinbd/mff-skyblock/
|
2015-09-03 01:09:22 +02:00
|
|
|
cp /home/quentinbd/server-minetestforfun-skyblock/game.conf /home/quentinbd/mff-skyblock/games/minetestforfun_skyblock/
|
|
|
|
#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/
|
2015-09-15 12:34:12 +02:00
|
|
|
cp /home/quentinbd/server-minetestforfun-skyblock/worlds/minetestforfun-skyblock/forbidden_names.txt /home/quentinbd/mff-skyblock/worlds/minetestforfun-skyblock/
|
2015-09-03 01:09:22 +02:00
|
|
|
echo "Nouveau 'minetest.conf, game.conf, world.mt, et le random_messages' correctement déplacé"
|
2015-09-02 23:03:50 +02:00
|
|
|
|
|
|
|
# Suppression du dossier cloné
|
|
|
|
rm -Rf /home/quentinbd/server-minetestforfun-skyblock/
|
|
|
|
echo "Bravo ! mff-skyblock/mods et mff-skyblock/games maintenant à jour"
|
|
|
|
|
|
|
|
# On ré-attribut les droits à quentinbd et en 755
|
|
|
|
chown -R quentinbd:quentinbd /home/quentinbd/mff-skyblock/
|
|
|
|
chmod -R 755 /home/quentinbd/mff-skyblock/
|
|
|
|
echo "ré-attribution des droits à quentinbd:quentinbd"
|