Mercurial > syslog2iptables
comparison remote @ 10:5dfe0138b4f9
initial coding
author | carl |
---|---|
date | Thu, 08 Dec 2005 13:58:08 -0800 |
parents | d76f9ff42487 |
children | 0d65c3de34fd |
comparison
equal
deleted
inserted
replaced
9:d76f9ff42487 | 10:5dfe0138b4f9 |
---|---|
9 } | 9 } |
10 | 10 |
11 n=syslog2iptables | 11 n=syslog2iptables |
12 v=0.1 | 12 v=0.1 |
13 t='ams ns1' | 13 t='ams ns1' |
14 t='mbmg' | |
14 for i in $t; do | 15 for i in $t; do |
15 scp $n*gz $i:/tmp | 16 scp $n*gz $i:/tmp |
16 me $i "cd /tmp; tar xfz $n*gz" | 17 me $i "cd /tmp; tar xfz $n*gz" |
17 me $i "cd /tmp/$n-$v; ./configure" | 18 me $i "cd /tmp/$n-$v; ./configure" |
18 me $i "cd /tmp/$n-$v; make" | 19 me $i "cd /tmp/$n-$v; make" |
19 me $i "cd /tmp/$n-$v; make install" | 20 me $i "cd /tmp/$n-$v; make install" |
20 me $i "/etc/rc.d/init.d/$n stop" | 21 me $i "/etc/rc.d/init.d/$n stop" |
21 me $i "/sbin/iptables -F INPUT" | 22 me $i "/sbin/iptables -F INPUT" |
22 me $i "cd /tmp/$n-$v; make chkconfig" | 23 me $i "cd /tmp/$n-$v; make chkconfig" |
24 if [ -f remote.$i ]; then | |
25 scp remote.$i $i:/etc/$n.conf | |
26 fi | |
23 done | 27 done |