<div dir="ltr"><div>Thanks, Petr. Updated patch attached.<br><br></div>Gabe<br><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 12, 2015 at 12:47 AM, Petr Spacek <span dir="ltr"><<a href="mailto:pspacek@redhat.com" target="_blank">pspacek@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Gabe,<br>
<br>
thank you for your patch!<br>
<br>
Please note that there might be a case where detection is_ipa_configured() is<br>
broken but the user still needs to run the uninstall process to clean it up.<br>
<br>
Could you amend the patch to respect --force option? In that case the<br>
detection should be skipped.<br>
<br>
Thank you for your time!<br>
<br>
Petr^2 Spacek<br>
<br>
On 9.10.2015 19:17, Gabe Alford wrote:<br>
> diff --git a/ipaserver/install/server/install.py b/ipaserver/install/server/install.py<br>
> index 13a59a0e6149dc22ded4a895db02516e9360e02b..ca93e7a6fd7276d9c0d82eb6f94575730759d858 100644<br>
> --- a/ipaserver/install/server/install.py<br>
> +++ b/ipaserver/install/server/install.py<br>
> @@ -954,6 +954,12 @@ def uninstall_check(installer):<br>
><br>
>      installer._installation_cleanup = False<br>
><br>
> +    if not is_ipa_configured():<br>
> +        print("IPA server is not configured on this system.\n" +<br>
> +              "If you want to install the IPA server, please install " +<br>
> +              "it using 'ipa-server-install'.")<br>
> +        sys.exit(1)<br>
> +<br>
>      fstore = sysrestore.FileStore(SYSRESTORE_DIR_PATH)<br>
>      sstore = sysrestore.StateFile(SYSRESTORE_DIR_PATH)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Manage your subscription for the Freeipa-devel mailing list:<br>
<a href="https://www.redhat.com/mailman/listinfo/freeipa-devel" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-devel</a><br>
Contribute to FreeIPA: <a href="http://www.freeipa.org/page/Contribute/Code" rel="noreferrer" target="_blank">http://www.freeipa.org/page/Contribute/Code</a><br>
</font></span></blockquote></div><br></div></div></div></div></div>