diff options
author | Simo Sorce <ssorce@redhat.com> | 2008-03-31 17:35:45 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2008-03-31 17:35:45 -0400 |
commit | af50f341adea4a10b5b6aa8e43193231ea5d7c59 (patch) | |
tree | f58cd949cda58d53ce7b7803804111d0d841df37 /ipa-server/ipa-install | |
parent | a81ea4051be80b8a07c90d6705bda546b0282501 (diff) | |
download | freeipa-af50f341adea4a10b5b6aa8e43193231ea5d7c59.tar.gz freeipa-af50f341adea4a10b5b6aa8e43193231ea5d7c59.tar.xz freeipa-af50f341adea4a10b5b6aa8e43193231ea5d7c59.zip |
Call client uninstall from server uninstall so that uninstall reverses also
client bits.
Diffstat (limited to 'ipa-server/ipa-install')
-rw-r--r-- | ipa-server/ipa-install/ipa-server-install | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ipa-server/ipa-install/ipa-server-install b/ipa-server/ipa-install/ipa-server-install index 1be1d3c94..b8b020c70 100644 --- a/ipa-server/ipa-install/ipa-server-install +++ b/ipa-server/ipa-install/ipa-server-install @@ -292,6 +292,13 @@ def check_dirsrv(): sys.exit(1) def uninstall(): + try: + run(["/usr/sbin/ipa-client-install", "--on-master", "--unattended", "--uninstall"]) + except Exception, e: + print "Uninstall of client side components failed!" + print "ipa-client-install returned: " + str(e) + pass + ipaserver.ntpinstance.NTPInstance(fstore).uninstall() ipaserver.bindinstance.BindInstance(fstore).uninstall() ipaserver.httpinstance.WebGuiInstance().uninstall() @@ -324,6 +331,14 @@ def main(): fstore = sysrestore.FileStore('/var/lib/ipa/sysrestore') if options.uninstall: + if not options.unattended: + print "\nThis is a NON REVERSIBLE operation and will delete all data and configuration!\n" + yesno = raw_input("Are you sure you want to continue with the uninstall proceedure?:[NO/yes] ") + if not yesno or yesno.lower() != "yes": + print "" + print "Aborting uninstall operation." + sys.exit(1) + return uninstall() print "==============================================================================" |