diff src/update @ 0:96a9758165cd original

Initial revision
author carl
date Tue, 20 Apr 2004 20:02:29 -0700
parents
children 793ac9cc114d
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/update	Tue Apr 20 20:02:29 2004 -0700
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+targets="ns1 davd"
+if [ "$1" == "conf" ]; then
+    DST=/var/dnsbl
+    mkdir -p $DST
+    cp *.conf $DST
+    for i in $targets; do
+        scp *.conf $i:$DST
+    done
+else
+    sh install.bash
+    for i in $targets; do
+        DST=/usr/src/rh8/dnsbl
+        scp * $i:$DST
+        ssh $i "cd $DST; sh install.bash"
+    done
+fi