Mercurial > syslog2iptables
annotate remote @ 9:d76f9ff42487
initial coding
author | carl |
---|---|
date | Sat, 03 Dec 2005 13:54:47 -0800 |
parents | |
children | 5dfe0138b4f9 |
rev | line source |
---|---|
9 | 1 #!/bin/bash |
2 | |
3 function me() | |
4 { | |
5 a="$1" | |
6 b="$2" | |
7 echo "ssh $a $b" | |
8 ssh $a "$b" | |
9 } | |
10 | |
11 n=syslog2iptables | |
12 v=0.1 | |
13 t='ams ns1' | |
14 for i in $t; do | |
15 scp $n*gz $i:/tmp | |
16 me $i "cd /tmp; tar xfz $n*gz" | |
17 me $i "cd /tmp/$n-$v; ./configure" | |
18 me $i "cd /tmp/$n-$v; make" | |
19 me $i "cd /tmp/$n-$v; make install" | |
20 me $i "/etc/rc.d/init.d/$n stop" | |
21 me $i "/sbin/iptables -F INPUT" | |
22 me $i "cd /tmp/$n-$v; make chkconfig" | |
23 done |