diff remote @ 9:d76f9ff42487

initial coding
author carl
date Sat, 03 Dec 2005 13:54:47 -0800
parents
children 5dfe0138b4f9
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/remote	Sat Dec 03 13:54:47 2005 -0800
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+function me()
+{
+    a="$1"
+    b="$2"
+    echo "ssh $a $b"
+    ssh $a "$b"
+}
+
+n=syslog2iptables
+v=0.1
+t='ams ns1'
+for i in $t; do
+    scp $n*gz $i:/tmp
+    me $i "cd /tmp; tar xfz $n*gz"
+    me $i "cd /tmp/$n-$v; ./configure"
+    me $i "cd /tmp/$n-$v; make"
+    me $i "cd /tmp/$n-$v; make install"
+    me $i "/etc/rc.d/init.d/$n stop"
+    me $i "/sbin/iptables -F INPUT"
+    me $i "cd /tmp/$n-$v; make chkconfig"
+done