From a0b8415236addf0ff32b9e05b2491d626d483171 Mon Sep 17 00:00:00 2001 From: Gabe Date: Wed, 21 Oct 2015 17:24:25 -0600 Subject: Warn if no installation found when running ipa-server-install --uninstall https://fedorahosted.org/freeipa/ticket/5341 Reviewed-By: Martin Basti --- ipaserver/install/server/install.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ipaserver') diff --git a/ipaserver/install/server/install.py b/ipaserver/install/server/install.py index 3f8ba2027..16539892d 100644 --- a/ipaserver/install/server/install.py +++ b/ipaserver/install/server/install.py @@ -968,6 +968,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) -- cgit