view src/update @ 3:7e1eb343a825

updates to use dcc conf files
author carl
date Wed, 21 Apr 2004 12:52:29 -0700
parents 96a9758165cd
children 793ac9cc114d
line wrap: on
line source

#!/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