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>
This commit is contained in:
Martin Basti committed 2016-04-26 14:01:42 +02:00
1 parent 14ee02dcbd
commit c5686295f1
6 files changed
+36 -64

No files matched your search

+2 -2
View File
@@ -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