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:06:32 -0400 |
commit | 1f6e2c8649713f768a652e95171900618fa2216c (patch) | |
tree | a085807ca302a71c58d65a51da479dc9ba443640 /ipa-server | |
parent | 8b99efbe3c8f050402f98cb9305a2d749ddc9ed8 (diff) | |
download | freeipa-1f6e2c8649713f768a652e95171900618fa2216c.tar.gz freeipa-1f6e2c8649713f768a652e95171900618fa2216c.tar.xz freeipa-1f6e2c8649713f768a652e95171900618fa2216c.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 3bfe07a2..a42c970a 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) |