Mercurial > dnsbl
annotate src/update @ 4:15a7e942adec
updates to use dcc conf files
author | carl |
---|---|
date | Wed, 21 Apr 2004 12:52:29 -0700 |
parents | 96a9758165cd |
children | 793ac9cc114d |
rev | line source |
---|---|
0 | 1 #!/bin/bash |
2 | |
3 targets="ns1 davd" | |
4 if [ "$1" == "conf" ]; then | |
5 DST=/var/dnsbl | |
6 mkdir -p $DST | |
7 cp *.conf $DST | |
8 for i in $targets; do | |
9 scp *.conf $i:$DST | |
10 done | |
11 else | |
12 sh install.bash | |
13 for i in $targets; do | |
14 DST=/usr/src/rh8/dnsbl | |
15 scp * $i:$DST | |
16 ssh $i "cd $DST; sh install.bash" | |
17 done | |
18 fi |