From 85dc0c2e3a396ff7d8d429a414b717cc01231b26 Mon Sep 17 00:00:00 2001 From: Gabe Date: Oct 22 2015 12:00:49 +0000 Subject: Warn if no installation found when running ipa-server-install --uninstall https://fedorahosted.org/freeipa/ticket/5341 Reviewed-By: Martin Basti --- diff --git a/ipaserver/install/server/install.py b/ipaserver/install/server/install.py index 13a59a0..7bd8994 100644 --- a/ipaserver/install/server/install.py +++ b/ipaserver/install/server/install.py @@ -954,6 +954,11 @@ def uninstall_check(installer): installer._installation_cleanup = False + if not is_ipa_configured(): + print("WARNING:\nIPA server is not configured on this system. " + "If you want to install the\nIPA server, please install " + "it using 'ipa-server-install'.") + fstore = sysrestore.FileStore(SYSRESTORE_DIR_PATH) sstore = sysrestore.StateFile(SYSRESTORE_DIR_PATH)