comparison 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
comparison
equal deleted inserted replaced
4:15a7e942adec 5:793ac9cc114d
1 #!/bin/bash 1 #!/bin/bash
2 2
3 targets="ns1 davd" 3 targets="ns1 davd"
4 if [ "$1" == "conf" ]; then 4 DST=/var/dnsbl
5 DST=/var/dnsbl 5 cp $DST/dnsbl.conf .
6 mkdir -p $DST 6 for i in $targets; do
7 cp *.conf $DST 7 scp $DST/*.conf $i:$DST
8 for i in $targets; do 8 done
9 scp *.conf $i:$DST 9
10 done 10 sh install.bash
11 else 11 for i in $targets; do
12 sh install.bash 12 DST=/usr/src/rh8/dnsbl
13 for i in $targets; do 13 ssh $i "mkdir -p $DST"
14 DST=/usr/src/rh8/dnsbl 14 scp * $i:$DST
15 scp * $i:$DST 15 ssh $i "cd $DST; sh install.bash"
16 ssh $i "cd $DST; sh install.bash" 16 done
17 done
18 fi