summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2008-07-18 22:29:52 +0000
committerivan <ivan>2008-07-18 22:29:52 +0000
commit3f9734601a69a1e868d9b02598eb22c8b10929fa (patch)
tree534d41241aaf9e9481190f00927b75d037be0d2a
parent083d1fef19686b9b72f1b92e72a4fa56a3f392a9 (diff)
add -e option to bind.import (now to actually implement it)
-rwxr-xr-xbin/bind.import7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/bind.import b/bin/bind.import
index 1cdf567..45db2e2 100755
--- a/bin/bind.import
+++ b/bin/bind.import
@@ -8,6 +8,7 @@
#
# OPTIONAL:
# -d: dry-run, debug: don't insert any records, just dump debugging output
+# -e: use existing domains records in Freeside
# -s: import slave zones as master. useful if you need to recreate your
# primary nameserver from a secondary
# -c dir: override patch for downloading zone files (for example, when
@@ -36,8 +37,8 @@ use FS::domain_record;
#use FS::svc_acct;
#use FS::part_svc;
-use vars qw($opt_p $opt_n $opt_s $opt_c $opt_d);
-getopts("p:n:sc:d");
+use vars qw($opt_p $opt_n $opt_s $opt_c $opt_d $opt_e);
+getopts("p:n:sc:de");
my $user = shift or die &usage;
adminsuidsetup $user;
@@ -75,7 +76,7 @@ print "\nBIND import completed.\n";
##
sub usage {
- die "Usage:\n\n bind.import -p partnum -n \"user\@machine:/path/to/named.conf\" [ -s ] [ -c chroot_dir ] [ -f ] user\n";
+ die "Usage:\n\n bind.import -p partnum -n \"user\@machine:/path/to/named.conf\" [ -s ] [ -c chroot_dir ] [ -d ] [ -e ] user\n";
}
########