diff options
author | Martin Kosek <mkosek@redhat.com> | 2011-04-27 16:09:43 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2011-04-29 09:28:37 +0200 |
commit | 2e99c60c8b21723f86f86bedf1c37c51789f7bc8 (patch) | |
tree | 1da8afdf5684e659a4dcbe6489e86f382c02a824 /install/tools | |
parent | 7811200c628696fd42762da835c565b4515505ac (diff) | |
download | freeipa-2e99c60c8b21723f86f86bedf1c37c51789f7bc8.tar.gz freeipa-2e99c60c8b21723f86f86bedf1c37c51789f7bc8.tar.xz freeipa-2e99c60c8b21723f86f86bedf1c37c51789f7bc8.zip |
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
Diffstat (limited to 'install/tools')
-rwxr-xr-x | install/tools/ipa-server-install | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install index bdce787d6..d50dc611b 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(): |