Skip to content
This repository was archived by the owner on Aug 20, 2020. It is now read-only.

Commit 146e665

Browse files
author
Quentin BUISSON-DEBON
committed
New folder name for scripts
script->scripts
1 parent 5c206af commit 146e665

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed
Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash
22
#rsync -e "ssh -i /root/.ssh/id_dsa" -av --delete-after /home/quentinbd/minetest/worlds/minetestforfun/news.txt [email protected]:/var/www/wordpress/wp-content/uploads/news/
33

44
# Check the public key rights
@@ -11,90 +11,90 @@ chmod 600 /home/quentinbd/.ssh/id_rsa.pub
1111
# MFF CLASSIC #
1212
###############
1313
# On prend les 1000 dernières lignes des logs et on y met dans "notready-moredebug-mff.txt"
14-
tail -n 1000 /home/quentinbd/script/moredebug-mff.txt > /home/quentinbd/script/notready-moredebug-mff.txt
14+
tail -n 1000 /home/quentinbd/scripts/moredebug-mff.txt > /home/quentinbd/scripts/notready-moredebug-mff.txt
1515

1616
# On ajoute une ligne au début
17-
sed -i '1s/^/################################################\n/' /home/quentinbd/script/notready-moredebug-mff.txt
18-
sed -i '1s/^/### MFF CLASSIC server - 1000 last log lines ###\n/' /home/quentinbd/script/notready-moredebug-mff.txt
19-
sed -i '1s/^/################################################\n/' /home/quentinbd/script/notready-moredebug-mff.txt
17+
sed -i '1s/^/################################################\n/' /home/quentinbd/scripts/notready-moredebug-mff.txt
18+
sed -i '1s/^/### MFF CLASSIC server - 1000 last log lines ###\n/' /home/quentinbd/scripts/notready-moredebug-mff.txt
19+
sed -i '1s/^/################################################\n/' /home/quentinbd/scripts/notready-moredebug-mff.txt
2020

2121
# On cache les adresses IPs
22-
sed 's/[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9]*/???.???.???.???/g' /home/quentinbd/script/notready-moredebug-mff.txt > /home/quentinbd/script/1000-moredebug-mff.txt
22+
sed 's/[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9]*/???.???.???.???/g' /home/quentinbd/scripts/notready-moredebug-mff.txt > /home/quentinbd/scripts/1000-moredebug-mff.txt
2323

2424
# On envoi "1000-moredebug-mff.txt" puis on le supprime
25-
rsync -azrv --delete /home/quentinbd/script/1000-moredebug-mff.txt [email protected]:/var/www/wordpress/wp-content/uploads/logs/
25+
rsync -azrv --delete /home/quentinbd/scripts/1000-moredebug-mff.txt [email protected]:/var/www/wordpress/wp-content/uploads/logs/
2626
echo ">>> Transfert réussi de 1000-moredebug-mff.txt sur le wordpress <<<"
2727
echo ""
2828

2929
# On supprime le fichier temporaire
30-
rm /home/quentinbd/script/notready-moredebug-mff.txt
31-
rm /home/quentinbd/script/1000-moredebug-mff.txt
30+
rm /home/quentinbd/scripts/notready-moredebug-mff.txt
31+
rm /home/quentinbd/scripts/1000-moredebug-mff.txt
3232

3333
##########
3434
# MFF HG #
3535
##########
3636
# On prend les 1000 dernières lignes des logs et on y met dans "notready-moredebug-mff-hg.txt"
37-
tail -n 1000 /home/quentinbd/script/moredebug-mff-hg.txt > /home/quentinbd/script/notready-moredebug-mff-hg.txt
37+
tail -n 1000 /home/quentinbd/scripts/moredebug-mff-hg.txt > /home/quentinbd/scripts/notready-moredebug-mff-hg.txt
3838

3939
# On ajoute une ligne au début
40-
sed -i '1s/^/###########################################\n/' /home/quentinbd/script/notready-moredebug-mff-hg.txt
41-
sed -i '1s/^/### MFF HG server - 1000 last log lines ###\n/' /home/quentinbd/script/notready-moredebug-mff-hg.txt
42-
sed -i '1s/^/###########################################\n/' /home/quentinbd/script/notready-moredebug-mff-hg.txt
40+
sed -i '1s/^/###########################################\n/' /home/quentinbd/scripts/notready-moredebug-mff-hg.txt
41+
sed -i '1s/^/### MFF HG server - 1000 last log lines ###\n/' /home/quentinbd/scripts/notready-moredebug-mff-hg.txt
42+
sed -i '1s/^/###########################################\n/' /home/quentinbd/scripts/notready-moredebug-mff-hg.txt
4343

4444
# On cache les adresses IPs
45-
sed 's/[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9]*/???.???.???.???/g' /home/quentinbd/script/notready-moredebug-mff-hg.txt > /home/quentinbd/script/1000-moredebug-mff-hg.txt
45+
sed 's/[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9]*/???.???.???.???/g' /home/quentinbd/scripts/notready-moredebug-mff-hg.txt > /home/quentinbd/scripts/1000-moredebug-mff-hg.txt
4646

4747
# On envoi "1000-moredebug-mff-hg.txt" puis on le supprime
48-
rsync -azrv --delete /home/quentinbd/script/1000-moredebug-mff-hg.txt [email protected]:/var/www/wordpress/wp-content/uploads/logs/
48+
rsync -azrv --delete /home/quentinbd/scripts/1000-moredebug-mff-hg.txt [email protected]:/var/www/wordpress/wp-content/uploads/logs/
4949
echo ">>> Transfert réussi de 1000-moredebug-mff-hg.txt sur le wordpress <<<"
5050
echo ""
5151

5252
# On supprime le fichier temporaire
53-
rm /home/quentinbd/script/notready-moredebug-mff-hg.txt
54-
rm /home/quentinbd/script/1000-moredebug-mff-hg.txt
53+
rm /home/quentinbd/scripts/notready-moredebug-mff-hg.txt
54+
rm /home/quentinbd/scripts/1000-moredebug-mff-hg.txt
5555

5656
################
5757
# MFF SKYBLOCK #
5858
################
5959
# On prend les 1000 dernières lignes des logs et on y met dans "notready-moredebug-mff-skyblock.txt"
60-
tail -n 1000 /home/quentinbd/script/moredebug-mff-skyblock.txt > /home/quentinbd/script/notready-moredebug-mff-skyblock.txt
60+
tail -n 1000 /home/quentinbd/scripts/moredebug-mff-skyblock.txt > /home/quentinbd/scripts/notready-moredebug-mff-skyblock.txt
6161

6262
# On ajoute une ligne au début
63-
sed -i '1s/^/#################################################\n/' /home/quentinbd/script/notready-moredebug-mff-skyblock.txt
64-
sed -i '1s/^/### MFF SKYBLOCK server - 1000 last log lines ###\n/' /home/quentinbd/script/notready-moredebug-mff-skyblock.txt
65-
sed -i '1s/^/#################################################\n/' /home/quentinbd/script/notready-moredebug-mff-skyblock.txt
63+
sed -i '1s/^/#################################################\n/' /home/quentinbd/scripts/notready-moredebug-mff-skyblock.txt
64+
sed -i '1s/^/### MFF SKYBLOCK server - 1000 last log lines ###\n/' /home/quentinbd/scripts/notready-moredebug-mff-skyblock.txt
65+
sed -i '1s/^/#################################################\n/' /home/quentinbd/scripts/notready-moredebug-mff-skyblock.txt
6666

6767
# On cache les adresses IPs
68-
sed 's/[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9]*/???.???.???.???/g' /home/quentinbd/script/notready-moredebug-mff-skyblock.txt > /home/quentinbd/script/1000-moredebug-mff-skyblock.txt
68+
sed 's/[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9]*/???.???.???.???/g' /home/quentinbd/scripts/notready-moredebug-mff-skyblock.txt > /home/quentinbd/scripts/1000-moredebug-mff-skyblock.txt
6969

7070
# On envoi "1000-moredebug-mff-skyblock.txt" puis on le supprime
71-
rsync -azrv --delete /home/quentinbd/script/1000-moredebug-mff-skyblock.txt [email protected]:/var/www/wordpress/wp-content/uploads/logs/
71+
rsync -azrv --delete /home/quentinbd/scripts/1000-moredebug-mff-skyblock.txt [email protected]:/var/www/wordpress/wp-content/uploads/logs/
7272
echo ">>> Transfert réussi de 1000-moredebug-mff-skyblock.txt sur le wordpress <<<"
7373
echo ""
7474

7575
# On supprime le fichier temporaire
76-
rm /home/quentinbd/script/notready-moredebug-mff-skyblock.txt
77-
rm /home/quentinbd/script/1000-moredebug-mff-skyblock.txt
76+
rm /home/quentinbd/scripts/notready-moredebug-mff-skyblock.txt
77+
rm /home/quentinbd/scripts/1000-moredebug-mff-skyblock.txt
7878

7979
################
8080
# MFF CREATIVE #
8181
################
8282
# On prend les 1000 dernières lignes des logs et on y met dans "notready-moredebug-mff-creative.txt"
83-
tail -n 1000 /home/quentinbd/script/moredebug-mff-creative.txt > /home/quentinbd/script/notready-moredebug-mff-creative.txt
83+
tail -n 1000 /home/quentinbd/scripts/moredebug-mff-creative.txt > /home/quentinbd/scripts/notready-moredebug-mff-creative.txt
8484

8585
# On ajoute une ligne au début
86-
sed -i '1s/^/#################################################\n/' /home/quentinbd/script/notready-moredebug-mff-creative.txt
87-
sed -i '1s/^/### MFF CREATIVE server - 1000 last log lines ###\n/' /home/quentinbd/script/notready-moredebug-mff-creative.txt
88-
sed -i '1s/^/#################################################\n/' /home/quentinbd/script/notready-moredebug-mff-creative.txt
86+
sed -i '1s/^/#################################################\n/' /home/quentinbd/scripts/notready-moredebug-mff-creative.txt
87+
sed -i '1s/^/### MFF CREATIVE server - 1000 last log lines ###\n/' /home/quentinbd/scripts/notready-moredebug-mff-creative.txt
88+
sed -i '1s/^/#################################################\n/' /home/quentinbd/scripts/notready-moredebug-mff-creative.txt
8989

9090
# On cache les adresses IPs
91-
sed 's/[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9]*/???.???.???.???/g' /home/quentinbd/script/notready-moredebug-mff-creative.txt > /home/quentinbd/script/1000-moredebug-mff-creative.txt
91+
sed 's/[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9]*/???.???.???.???/g' /home/quentinbd/scripts/notready-moredebug-mff-creative.txt > /home/quentinbd/scripts/1000-moredebug-mff-creative.txt
9292

9393
# On envoi "1000-moredebug-mff-creative.txt" puis on le supprime
94-
rsync -azrv --delete /home/quentinbd/script/1000-moredebug-mff-creative.txt [email protected]:/var/www/wordpress/wp-content/uploads/logs/
94+
rsync -azrv --delete /home/quentinbd/scripts/1000-moredebug-mff-creative.txt [email protected]:/var/www/wordpress/wp-content/uploads/logs/
9595
echo ">>> Transfert réussi de 1000-moredebug-mff-creative.txt sur le wordpress <<<"
9696
echo ""
9797

9898
# On supprime le fichier temporaire
99-
rm /home/quentinbd/script/notready-moredebug-mff-creative.txt
100-
rm /home/quentinbd/script/1000-moredebug-mff-creative.txt
99+
rm /home/quentinbd/scripts/notready-moredebug-mff-creative.txt
100+
rm /home/quentinbd/scripts/1000-moredebug-mff-creative.txt

0 commit comments

Comments
 (0)