From 2e99c60c8b21723f86f86bedf1c37c51789f7bc8 Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Wed, 27 Apr 2011 16:09:43 +0200 Subject: Forbid reinstallation in ipa-client-install The --force option may be misused to reinstall an existing IPA client. This is not supported and may lead to unexpected errors. When required, the cleanest way to re-install IPA client is to run uninstall and then install again. This patch also includes few cosmetic changes in messages to user to provide more consistent user experience with the script. https://fedorahosted.org/freeipa/ticket/1117 --- install/tools/ipa-server-install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'install') diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install index bdce787d..d50dc611 100755 --- a/install/tools/ipa-server-install +++ b/install/tools/ipa-server-install @@ -494,7 +494,8 @@ def main(): standard_logging_setup("/var/log/ipaserver-install.log", options.debug) print "\nThe log file for this installation can be found in /var/log/ipaserver-install.log" if (dsinstance.DsInstance().is_configured() or cainstance.CADSInstance().is_configured()) and not options.external_cert_file: - sys.exit("IPA server is already configured on this system.") + sys.exit("IPA server is already configured on this system.\n" + + "If you want to reinstall the IPA server please uninstall it first.") client_fstore = sysrestore.FileStore('/var/lib/ipa-client/sysrestore') if client_fstore.has_files(): -- cgit