summaryrefslogtreecommitdiffstats
path: root/install/tools
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2015-02-09 16:18:28 +0100
committerMartin Kosek <mkosek@redhat.com>2015-02-18 10:05:45 +0100
commitb5e06b90c9113836eef5b04f0993097314d2be84 (patch)
treeb6351b948559bc0e183805e128625f71a673bff1 /install/tools
parentf499e506c86d076a57e74bcca587394c8036ed57 (diff)
downloadfreeipa-b5e06b90c9113836eef5b04f0993097314d2be84.tar.gz
freeipa-b5e06b90c9113836eef5b04f0993097314d2be84.tar.xz
freeipa-b5e06b90c9113836eef5b04f0993097314d2be84.zip
Uninstall configured services only
Fixes: dnskeysyncisntance - requires a stored state to be uninstalled bindinstance - uninstal service only if bind was configured by IPA Ticket:https://fedorahosted.org/freeipa/ticket/4869 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'install/tools')
-rwxr-xr-xinstall/tools/ipa-server-install10
1 files changed, 8 insertions, 2 deletions
diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install
index 8b2b8a3c2..56a43770d 100755
--- a/install/tools/ipa-server-install
+++ b/install/tools/ipa-server-install
@@ -597,8 +597,14 @@ def uninstall():
if ods_exporter.is_configured():
ods_exporter.uninstall()
- bindinstance.BindInstance(fstore).uninstall()
- dnskeysyncinstance.DNSKeySyncInstance(fstore).uninstall()
+ bind = bindinstance.BindInstance(fstore)
+ if bind.is_configured():
+ bind.uninstall()
+
+ dnskeysync = dnskeysyncinstance.DNSKeySyncInstance(fstore)
+ if dnskeysync.is_configured():
+ dnskeysync.uninstall()
+
httpinstance.HTTPInstance(fstore).uninstall()
krbinstance.KrbInstance(fstore).uninstall()
dsinstance.DsInstance(fstore=fstore).uninstall()