mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-11 12:50:41 +01:00
1db80b9ec5
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
45 lines
1.9 KiB
Bash
Executable File
45 lines
1.9 KiB
Bash
Executable File
# 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/
|