view src/package @ 34:fc7f8f3ea90f

look for NS records on the SBL also
author carl
date Sun, 30 May 2004 16:17:44 -0700
parents ccb02fc678aa
children 038521f9490a
line wrap: on
line source

#!/bin/bash

VER=dnsbl-2.6
mkdir $VER
    target1=/home/httpd/html/510sg/util/dnsbl.tar.gz
    target2=/home/httpd/html/510sg/dnsbl.conf
    target3=/home/httpd/html/510sg/dnsbl.html

    cp sample.conf    $VER/dnsbl.conf
    cp html-tags.conf $VER
    cp tld.conf       $VER
    cp *cpp           $VER
    cp *rc            $VER
    cp install.bash   $VER
    cp LICENSE        $VER
    tar cfvz $target1 $VER

    cp sample.conf $target2
    cp dnsbl.html  $target3

    echo scp $target1 ns1:$target1
    echo scp $target2 ns1:$target2
    echo scp $target3 ns1:$target3
    bt1=`basename $target1`
    bt2=`basename $target2`
    bt3=`basename $target3`
    scp $target1 ams:/tmp/$bt1
    scp $target2 ams:/tmp/$bt2
    scp $target3 ams:/tmp/$bt3
    ssh -t ams "scp /tmp/$bt1 ns1.five-ten-sg.com:$target1"
    ssh -t ams "scp /tmp/$bt2 ns1.five-ten-sg.com:$target2"
    ssh -t ams "scp /tmp/$bt3 ns1.five-ten-sg.com:$target3"
rm -rf $VER