diff options
author | Martin Basti <mbasti@redhat.com> | 2016-04-19 18:36:32 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-04-26 14:01:42 +0200 |
commit | c5686295f14c955d34d9598ddb80b30cb9df663c (patch) | |
tree | 5421aa91c6f5d645e7d9cbeff8fb4378a34577f7 /client | |
parent | 14ee02dcbd6cbb6c221ac7526e471a9fc58fcc82 (diff) | |
download | freeipa-c5686295f14c955d34d9598ddb80b30cb9df663c.tar.gz freeipa-c5686295f14c955d34d9598ddb80b30cb9df663c.tar.xz freeipa-c5686295f14c955d34d9598ddb80b30cb9df663c.zip |
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 <dkupka@redhat.com>
Diffstat (limited to 'client')
-rwxr-xr-x | client/ipa-client-install | 4 |
1 files changed, 2 insertions, 2 deletions
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 |