annotate src/update @ 0:96a9758165cd original

Initial revision
author carl
date Tue, 20 Apr 2004 20:02:29 -0700
parents
children 793ac9cc114d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
96a9758165cd Initial revision
carl
parents:
diff changeset
1 #!/bin/bash
96a9758165cd Initial revision
carl
parents:
diff changeset
2
96a9758165cd Initial revision
carl
parents:
diff changeset
3 targets="ns1 davd"
96a9758165cd Initial revision
carl
parents:
diff changeset
4 if [ "$1" == "conf" ]; then
96a9758165cd Initial revision
carl
parents:
diff changeset
5 DST=/var/dnsbl
96a9758165cd Initial revision
carl
parents:
diff changeset
6 mkdir -p $DST
96a9758165cd Initial revision
carl
parents:
diff changeset
7 cp *.conf $DST
96a9758165cd Initial revision
carl
parents:
diff changeset
8 for i in $targets; do
96a9758165cd Initial revision
carl
parents:
diff changeset
9 scp *.conf $i:$DST
96a9758165cd Initial revision
carl
parents:
diff changeset
10 done
96a9758165cd Initial revision
carl
parents:
diff changeset
11 else
96a9758165cd Initial revision
carl
parents:
diff changeset
12 sh install.bash
96a9758165cd Initial revision
carl
parents:
diff changeset
13 for i in $targets; do
96a9758165cd Initial revision
carl
parents:
diff changeset
14 DST=/usr/src/rh8/dnsbl
96a9758165cd Initial revision
carl
parents:
diff changeset
15 scp * $i:$DST
96a9758165cd Initial revision
carl
parents:
diff changeset
16 ssh $i "cd $DST; sh install.bash"
96a9758165cd Initial revision
carl
parents:
diff changeset
17 done
96a9758165cd Initial revision
carl
parents:
diff changeset
18 fi