view src/update @ 1:bd0b1a153f67

no message
author carl
date Tue, 20 Apr 2004 22:11:14 -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