summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/server
diff options
context:
space:
mode:
authorGabe <redhatrises@gmail.com>2015-10-21 17:24:25 -0600
committerMartin Basti <mbasti@redhat.com>2015-10-22 14:00:49 +0200
commita0b8415236addf0ff32b9e05b2491d626d483171 (patch)
tree4ae248e879b2f39803d8f0f0e09266e3616a71c4 /ipaserver/install/server
parent958996b9cc55b6e9ecdc23981e79599ec6826b4c (diff)
downloadfreeipa-a0b8415236addf0ff32b9e05b2491d626d483171.tar.gz
freeipa-a0b8415236addf0ff32b9e05b2491d626d483171.tar.xz
freeipa-a0b8415236addf0ff32b9e05b2491d626d483171.zip
Warn if no installation found when running ipa-server-install --uninstall
https://fedorahosted.org/freeipa/ticket/5341 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipaserver/install/server')
-rw-r--r--ipaserver/install/server/install.py5
1 files changed, 5 insertions, 0 deletions
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)