1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

add some server side scripts and re-organize the script folder

This commit is contained in:
BUISSON-DEBON Quentin
2015-08-17 01:14:55 +02:00
parent 502a814dd3
commit caed822407
15 changed files with 273 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#!/bin/sh
#rsync -e "ssh -i /root/.ssh/id_dsa" -av --delete-after /home/quentinbd/minetest/worlds/minetestforfun/news.txt root@192.168.1.20:/var/www/wordpress/wp-content/uploads/news/
# Check the public key rights
chmod 600 /home/quentinbd/.ssh/id_rsa
chmod 600 /home/quentinbd/.ssh/id_rsa.pub
# Begin the RSYNC
rsync -azrv --delete /home/quentinbd/minetest/worlds/minetestforfun/news.txt quentinbd@192.168.1.20:/var/www/wordpress/wp-content/uploads/news/
echo "Transfert réussi de news.txt sur le wordpress"

View File

@ -0,0 +1,26 @@
#!/bin/bash
DEBUG='/home/quentinbd/script/debug-mff-hg.txt'
MOREDEBUG='/home/quentinbd/script/moredebug-mff-hg.txt'
cd /home/quentinbd/mff-hg
while true
do
sleep 5
echo "----------------------" >>$MOREDEBUG
echo "Server restarted at "`date` >>$MOREDEBUG
echo "----------------------" >>$MOREDEBUG
echo "0" >/tmp/players_c.txt
/home/quentinbd/mff-hg/bin/minetestserver \
--world /home/quentinbd/mff-hg/worlds/minetestforfun-hg/ \
--config /home/quentinbd/mff-hg/minetest.conf \
--gameid hungry_games \
--port 30042 \
# --logfile $DEBUG
sleep 25
done &>> $MOREDEBUG

View File

@ -0,0 +1,27 @@
#!/bin/bash
DEBUG='/home/quentinbd/script/debug-mff.txt'
MOREDEBUG='/home/quentinbd/script/moredebug-mff.txt'
cd /home/quentinbd/mff
while true
do
sleep 5
echo "----------------------" >>$MOREDEBUG
echo "Server restarted at "`date` >>$MOREDEBUG
echo "----------------------" >>$MOREDEBUG
echo "0" >/tmp/players_c.txt
/home/quentinbd/mff/bin/minetestserver \
--world /home/quentinbd/mff/worlds/minetestforfun/ \
--config /home/quentinbd/mff/minetest.conf \
--gameid minetestforfun_game \
--port 30001 \
# --logfile $DEBUG
sleep 25
done &>> $MOREDEBUG