mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-13 09:41:55 -06:00
Don't prompt regarding previous DS installations in unattended mode.
449150
This commit is contained in:
parent
e935287f6e
commit
f87dc9123b
@ -260,11 +260,13 @@ def read_admin_password():
|
||||
admin_password = read_password("IPA admin")
|
||||
return admin_password
|
||||
|
||||
def check_dirsrv():
|
||||
def check_dirsrv(unattended):
|
||||
serverids = ipaserver.dsinstance.check_existing_installation()
|
||||
if serverids:
|
||||
print ""
|
||||
print "An existing Directory Server has been detected."
|
||||
if unattended:
|
||||
sys.exit(1)
|
||||
yesno = raw_input("Do you wish to remove it and create a new one? [no]: ")
|
||||
if not yesno or yesno.lower()[0] != "y":
|
||||
print ""
|
||||
@ -353,7 +355,7 @@ def main():
|
||||
print "To accept the default shown in brackets, press the Enter key."
|
||||
print ""
|
||||
|
||||
check_dirsrv()
|
||||
check_dirsrv(options.unattended)
|
||||
|
||||
ds_user = ""
|
||||
realm_name = ""
|
||||
|
Loading…
Reference in New Issue
Block a user