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:
8
other_things/scripts/Server-side/script/news-mff-rsync.sh
Executable file
8
other_things/scripts/Server-side/script/news-mff-rsync.sh
Executable 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"
|
26
other_things/scripts/Server-side/script/start-mff-hg.sh
Executable file
26
other_things/scripts/Server-side/script/start-mff-hg.sh
Executable 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
|
27
other_things/scripts/Server-side/script/start-mff.sh
Executable file
27
other_things/scripts/Server-side/script/start-mff.sh
Executable 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
|
||||
|
Reference in New Issue
Block a user