1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-14 06:20:32 +01:00
server-nalc/other_things/scripts/Server-side/upgrade-mff/w-upgrade-mff.sh
sys4-fr 1db80b9ec5 Change default config files for NotreAmiLeCube Server
Add and activate TNT mod
Activate Fire propagation
Add Technic modpack
Add technic_armor mod
Add bakedclay
Remove burned_clay
Add bonemeal
Add digilines
Add enchanting
Add experience
Add lightning
Add maidroid
Add meshnode
Add morefarming
Add moreflowers
Add moreplants
Add pdisc
Add playeranim
Add playereffects
Change cyberpangolin skin
Add weather_pack
Add witchcraft
2017-03-12 15:39:36 +01:00

45 lines
1.9 KiB
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# passer sur branche master ou stable github
cd /home/vincent/mff/
# Suppression des anciens fichiers
rm -Rv /home/vincent/mff/upgrade-mff/olds
rm -Rv /home/vincent/mff/upgrade-mff/mff.tar.gz
# Sauvegarde des fichiers critiques
cp -Rv /home/vincent/jeux/mff/games/minetestforfun_game/ /home/vincent/mff/upgrade-mff/olds/
cp -Rv /home/vincent/jeux/mff/mods/ /home/vincent/mff/upgrade-mff/olds/
cp -Rv /home/vincent/jeux/mff/worlds/ /home/vincent/mff/upgrade-mff/olds/
cp /home/vincent/jeux/mff/minetest.conf /home/vincent/mff/upgrade-mff/olds/
# Sauvegarde et compression du dossier minetest (au cas ou)
cd /home/vincent/mff/upgrade-mff/
tar -cf mff.tar.gz /home/vincent/jeux/mff/
# Suppression de minetest
rm -Rv /home/vincent/jeux/mff/
# Réinstallaton de minetest
cd /home/vincent/jeux/
# DEBUT - Utilisation de la dernière version 0.4 stable
wget https://codeload.github.com/minetest/minetest/zip/stable-0.4
unzip /home/vincent/jeux/stable-0.4
mv /home/vincent/jeux/minetest-stable-0.4/ /home/vincent/jeux/mff/
rm -v /home/vincent/jeux/stable-0.4
# FIN - Utilisation de la version 0.4 stable
# Compilation
cd /home/vincent/jeux/mff/
# Build REDIS + IRC
cmake . -DBUILD_CLIENT=0 -DBUILD_SERVER=1 -DENABLE_SOUND=0 -DENABLE_SYSTEM_GMP=1 -DIRRLICHT_SOURCE_DIR=/home/vincent/jeux/lib/irrlicht-1.8.4 -DENABLE_LEVELDB=0 -DENABLE_REDIS=1 -DRUN_IN_PLACE=1 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LUAJIT=1 -DENABLE_CURL=1
make -j$(grep -c processor /proc/cpuinfo)
# Ajout des fichiers critiques au nouveau dossier minetest
cp -Rv /home/vincent/mff/upgrade-mff/olds/minetestforfun_game/ /home/vincent/jeux/mff/games/
cp -Rv /home/vincent/mff/upgrade-mff/olds/mods/ /home/vincent/jeux/mff/
cp -Rv /home/vincent/mff/upgrade-mff/olds/worlds/ /home/vincent/jeux/mff/
cp /home/vincent/mff/upgrade-mff/olds/minetest.conf /home/vincent/jeux/mff/
## Donne les droits à quentinbd
#chmod -R 755 /home/quentinbd/mff/
#chown -R quentinbd:quentinbd /home/quentinbd/