Don't ask the user again if he wants to replace bind configuration files if he specified --setup-bind.

430090
This commit is contained in:
Martin Nagy
2008-05-14 16:25:10 -04:00
committed by Rob Crittenden
parent 28f312664e
commit 2d608a8354
+1 -10
View File
@@ -499,16 +499,7 @@ def main():
bind.setup(host_name, ip_address, realm_name, domain_name)
if options.setup_bind:
skipbind = False
if not options.unattended:
print "This program is about to replace the DNS Server configuration,"
print "with an automatically generated one, based on the data gathered so far."
print "This will REPLACE any existing configuration."
yesno = raw_input("Are you sure you want to configure the DNS Server ? [no]: ")
if not yesno or yesno.lower()[0] != 'y':
skipbind = True
if not skipbind:
bind.create_instance()
bind.create_instance()
else:
bind.create_sample_bind_zone()