"Fossies" - the Fresh Open Source Software Archive

Member "opendnssec-2.1.4/contrib/simple-dnskey-mailer/simple-dnskey-mailer.sh" (16 May 2019, 1853 Bytes) of package /linux/misc/dns/opendnssec-2.1.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 #
    3 # Copyright (c) 2010 .SE (The Internet Infrastructure Foundation).
    4 # All rights reserved.
    5 # 
    6 # Redistribution and use in source and binary forms, with or without
    7 # modification, are permitted provided that the following conditions
    8 # are met:
    9 # 1. Redistributions of source code must retain the above copyright
   10 #    notice, this list of conditions and the following disclaimer.
   11 # 2. Redistributions in binary form must reproduce the above copyright
   12 #    notice, this list of conditions and the following disclaimer in the
   13 #    documentation and/or other materials provided with the distribution.
   14 # 
   15 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   16 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
   17 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   18 # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
   19 # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   20 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
   21 # GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   22 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
   23 # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
   24 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
   25 # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   26 # 
   27 
   28 # ***********************************************************************
   29 # *
   30 # * This script sends keys from OpenDNSSEC to the address specified below
   31 # *
   32 # * Set this up by specifying the path for this script in conf.xml
   33 # * using the <DelegationSignerSubmitCommand> tag.
   34 # *
   35 # ***********************************************************************
   36 
   37 # define and uncomment recipient below
   38 #RECIPIENT=user@example.com
   39 
   40 if [ -n "$RECIPIENT" ]; then
   41     cat | mail -s "New keys from OpenDNSSEC" $RECIPIENT
   42 else
   43 fi