From c5686295f14c955d34d9598ddb80b30cb9df663c Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Tue, 19 Apr 2016 18:36:32 +0200 Subject: Always set hostname This prevents cases when hostname on system is set inconsistently (transient and static hostname differs) and may cause IPA errors. This commit ensures that all hostnames are set properly. https://fedorahosted.org/freeipa/ticket/5794 Reviewed-By: David Kupka --- client/ipa-client-install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client') diff --git a/client/ipa-client-install b/client/ipa-client-install index 0e6e65c4a..e56890463 100755 --- a/client/ipa-client-install +++ b/client/ipa-client-install @@ -713,12 +713,12 @@ def uninstall(options, env): root_logger.warning( "Failed to disable automatic startup of the SSSD daemon: %s", e) + tasks.restore_hostname(fstore, statestore) + if fstore.has_files(): root_logger.info("Restoring client configuration files") - tasks.restore_network_configuration(fstore, statestore) fstore.restore_all_files() - ipautil.restore_hostname(statestore) unconfigure_nisdomain() nscd = services.knownservices.nscd -- cgit