0
|
1 #!/bin/bash
|
|
2
|
40
|
3 VER=dnsbl-3.1
|
14
|
4 mkdir $VER
|
|
5 target1=/home/httpd/html/510sg/util/dnsbl.tar.gz
|
|
6 target2=/home/httpd/html/510sg/dnsbl.conf
|
|
7 target3=/home/httpd/html/510sg/dnsbl.html
|
0
|
8
|
24
|
9 cp sample.conf $VER/dnsbl.conf
|
28
|
10 cp html-tags.conf $VER
|
|
11 cp tld.conf $VER
|
24
|
12 cp *cpp $VER
|
|
13 cp *rc $VER
|
|
14 cp install.bash $VER
|
|
15 cp LICENSE $VER
|
14
|
16 tar cfvz $target1 $VER
|
0
|
17
|
14
|
18 cp sample.conf $target2
|
|
19 cp dnsbl.html $target3
|
0
|
20
|
24
|
21 echo scp $target1 ns1:$target1
|
|
22 echo scp $target2 ns1:$target2
|
|
23 echo scp $target3 ns1:$target3
|
32
|
24 bt1=`basename $target1`
|
|
25 bt2=`basename $target2`
|
|
26 bt3=`basename $target3`
|
|
27 scp $target1 ams:/tmp/$bt1
|
|
28 scp $target2 ams:/tmp/$bt2
|
|
29 scp $target3 ams:/tmp/$bt3
|
34
|
30 ssh -t ams "scp /tmp/$bt1 ns1.five-ten-sg.com:$target1"
|
|
31 ssh -t ams "scp /tmp/$bt2 ns1.five-ten-sg.com:$target2"
|
|
32 ssh -t ams "scp /tmp/$bt3 ns1.five-ten-sg.com:$target3"
|
14
|
33 rm -rf $VER
|