mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-14 06:20:32 +01:00
45 lines
2.0 KiB
Bash
45 lines
2.0 KiB
Bash
|
# passer sur branche master ou stable github
|
|||
|
cd /home/quentinbd/mff-creative/
|
|||
|
|
|||
|
# Suppression des anciens fichiers
|
|||
|
rm -Rv /home/quentinbd/upgrade-mff-creative/olds
|
|||
|
rm -Rv /home/quentinbd/upgrade-mff-creative/mff-creative.tar.gz
|
|||
|
|
|||
|
# Sauvegarde des fichiers critiques
|
|||
|
cp -Rv /home/quentinbd/mff-creative/games/minetestforfun_creative/ /home/quentinbd/upgrade-mff-creative/olds/
|
|||
|
cp -Rv /home/quentinbd/mff-creative/mods/ /home/quentinbd/upgrade-mff-creative/olds/
|
|||
|
cp -Rv /home/quentinbd/mff-creative/worlds/ /home/quentinbd/upgrade-mff-creative/olds/
|
|||
|
cp /home/quentinbd/mff-creative/minetest.conf /home/quentinbd/upgrade-mff-creative/olds/
|
|||
|
|
|||
|
# Sauvegarde et compression du dossier minetest (au cas ou)
|
|||
|
cd /home/quentinbd/upgrade-mff-creative/
|
|||
|
tar -cf mff-creative.tar.gz /home/quentinbd/mff-creative/
|
|||
|
|
|||
|
# Suppression de minetest
|
|||
|
rm -Rv /home/quentinbd/mff-creative/
|
|||
|
|
|||
|
# Réinstallaton de minetest
|
|||
|
cd /home/quentinbd/
|
|||
|
# DEBUT - Utilisation de la dernière version 0.4 stable
|
|||
|
wget https://codeload.github.com/minetest/minetest/zip/stable-0.4
|
|||
|
unzip /home/quentinbd/stable-0.4
|
|||
|
mv /home/quentinbd/minetest-stable-0.4/ /home/quentinbd/mff-creative/
|
|||
|
rm -v /home/quentinbd/stable-0.4
|
|||
|
# FIN - Utilisation de la version 0.4 stable
|
|||
|
|
|||
|
# Compilation
|
|||
|
cd /home/quentinbd/mff-creative/
|
|||
|
# build SQLITE3
|
|||
|
cmake . -DBUILD_CLIENT=0 -DBUILD_SERVER=1 -DRUN_IN_PLACE=1 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LUAJIT=1 -DCMAKE_INSTALL_PREFIX:PATH=/usr
|
|||
|
make -j$(grep -c processor /proc/cpuinfo)
|
|||
|
|
|||
|
# Ajout des fichiers critiques au nouveau dossier minetest
|
|||
|
cp -Rv /home/quentinbd/upgrade-mff-creative/olds/minetestforfun_creative/ /home/quentinbd/mff-creative/games/
|
|||
|
cp -Rv /home/quentinbd/upgrade-mff-creative/olds/mods/ /home/quentinbd/mff-creative/
|
|||
|
cp -Rv /home/quentinbd/upgrade-mff-creative/olds/worlds/ /home/quentinbd/mff-creative/
|
|||
|
cp /home/quentinbd/upgrade-mff-creative/olds/minetest.conf /home/quentinbd/mff-creative/
|
|||
|
|
|||
|
# Donne les droits à quentinbd
|
|||
|
chmod -R 755 /home/quentinbd/mff-creative/
|
|||
|
chown -R quentinbd:quentinbd /home/quentinbd/mff-creative/
|