diff src/update @ 5:793ac9cc114d stable-1-0

updates to use dcc conf files
author carl
date Wed, 21 Apr 2004 16:09:07 -0700
parents 96a9758165cd
children 2eef08791e11
line wrap: on
line diff
--- a/src/update	Wed Apr 21 12:52:29 2004 -0700
+++ b/src/update	Wed Apr 21 16:09:07 2004 -0700
@@ -1,18 +1,16 @@
 #!/bin/bash
 
 targets="ns1 davd"
-if [ "$1" == "conf" ]; then
     DST=/var/dnsbl
-    mkdir -p $DST
-    cp *.conf $DST
+cp $DST/dnsbl.conf .
     for i in $targets; do
-        scp *.conf $i:$DST
+    scp $DST/*.conf $i:$DST
     done
-else
+
     sh install.bash
     for i in $targets; do
         DST=/usr/src/rh8/dnsbl
+    ssh $i "mkdir -p $DST"
         scp * $i:$DST
         ssh $i "cd $DST; sh install.bash"
     done
-fi