diff options
author | Gabe <redhatrises@gmail.com> | 2015-10-21 17:24:25 -0600 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2015-10-22 14:00:49 +0200 |
commit | a0b8415236addf0ff32b9e05b2491d626d483171 (patch) | |
tree | 4ae248e879b2f39803d8f0f0e09266e3616a71c4 /ipaserver | |
parent | 958996b9cc55b6e9ecdc23981e79599ec6826b4c (diff) | |
download | freeipa-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')
-rw-r--r-- | ipaserver/install/server/install.py | 5 |
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) |