Confirm before configuring the client.

This commit is contained in:
Karl MacMillan
-
parent 148a55811d
commit 380756ace9

View File

@@ -124,6 +124,12 @@ def main():
print "IPA Server: "+ds.getServerName() print "IPA Server: "+ds.getServerName()
print "BaseDN: "+ds.getBaseDN() print "BaseDN: "+ds.getBaseDN()
print "\n"
yesno = raw_input("Continue to configure the system with these values? [y/N] ")
if yesno.lower() != "y":
return 1
print "\n"
# Configure ipa.conf # Configure ipa.conf
ipaconf = ipaclient.ipachangeconf.IPAChangeConf("IPA Installer") ipaconf = ipaclient.ipachangeconf.IPAChangeConf("IPA Installer")
ipaconf.setOptionAssignment(" = ") ipaconf.setOptionAssignment(" = ")
@@ -225,4 +231,4 @@ def main():
return 0 return 0
main() sys.exit(main())