From: Jonathan McDowell Date: Fri, 17 Mar 2006 09:11:57 +0000 (+0000) Subject: Make add-dns.pl croak if you don't configure it. X-Git-Url: https://the.earth.li/gitweb/?p=autodns.git;a=commitdiff_plain;h=be5a95b03d5e32c851c2d28368565c44a2a0cb79 Make add-dns.pl croak if you don't configure it. Add patch from Tristam Fenton-May to make add-dns.pl croak if you haven't actually configured your details in it. git-archimport-id: noodles@earth.li--pie/autodns--mainline--1.0--patch-15 --- diff --git a/contrib/add-dns.pl b/contrib/add-dns.pl index 53a0e3a..e039230 100644 --- a/contrib/add-dns.pl +++ b/contrib/add-dns.pl @@ -17,16 +17,31 @@ use IPC::Open3; sub usage; + +############################################################################## +## Configuration section +############################################################################## + +my $from = "FILL HERE"; +my $keyid = "FILL HERE"; +my $to = 'dns-auto@ns0.blackcatnetworks.co.uk,'. + 'dns-auto@ns1.blackcatnetworks.co.uk'; + +############################################################################## +############################################################################## + +if ($from eq "FILL HERE") { + die "You need to edit the script to specify your email address". + " and GPG key ID (please also check the addresses of the". + " servers to update)\n"); +} + my $sendmail = "/usr/sbin/sendmail"; my $gpg = "/usr/bin/gpg"; -my $to = 'dns-auto@tuschin.blackcatnetworks.co.uk, - dns-auto@ns1.blackcatnetworks.co.uk'; #my $to = 'dom'; -my $from = 'Urchin Hostmaster '; my $cc = $from; #my $cc = ""; -my $keyid = "25B2616D"; my $command; my @validcommands = qw(add remove list remotehelp);