diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-05-08 15:21:20 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-05-09 14:05:47 -0400 |
commit | 41457f0e817c4b1186e0dceaa486c32a382d180d (patch) | |
tree | 2925333f6c4230290bd20788cd81d4d6eebb4bce /ipa-server | |
parent | ae641ed31b45a19def11273b13d41658ed0580ce (diff) | |
download | freeipa-41457f0e817c4b1186e0dceaa486c32a382d180d.tar.gz freeipa-41457f0e817c4b1186e0dceaa486c32a382d180d.tar.xz freeipa-41457f0e817c4b1186e0dceaa486c32a382d180d.zip |
Display information on how to uninstall a partially installed server.
This may have failed either because the user pressed ^C or something
failed during installation.
442454
Diffstat (limited to 'ipa-server')
-rw-r--r-- | ipa-server/ipa-install/ipa-replica-install | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/ipa-server/ipa-install/ipa-replica-install b/ipa-server/ipa-install/ipa-replica-install index 3bfe07a22..a42c970ae 100644 --- a/ipa-server/ipa-install/ipa-replica-install +++ b/ipa-server/ipa-install/ipa-replica-install @@ -254,15 +254,21 @@ try: sys.exit("\nYou must be root to run this script.\n") main() + sys.exit(0) +except SystemExit, e: + sys.exit(e) except Exception, e: print "creation of replica failed: %s" % str(e) message = str(e) for str in traceback.format_tb(sys.exc_info()[2]): message = message + "\n" + str logging.debug(message) - sys.exit(1) except KeyboardInterrupt: print "Installation cancelled." - print "Your system may be partly configured." - print "Run /usr/sbin/ipa-server-install --uninstall to clean up." - sys.exit(1) + +print "" +print "Your system may be partly configured." +print "Run /usr/sbin/ipa-server-install --uninstall to clean up." + +# the only way to get here is on error or ^C +sys.exit(1) |