diff options
-rwxr-xr-x | client/ipa-client-install | 3 | ||||
-rw-r--r-- | ipaplatform/base/paths.py | 2 | ||||
-rw-r--r-- | ipaplatform/redhat/tasks.py | 10 |
3 files changed, 1 insertions, 14 deletions
diff --git a/client/ipa-client-install b/client/ipa-client-install index e56890463..cff3fbfcd 100755 --- a/client/ipa-client-install +++ b/client/ipa-client-install @@ -2502,9 +2502,8 @@ def install(options, env, fstore, statestore): cli_realm, paths.KRB5_KEYTAB)) if options.hostname and not options.on_master: - # configure /etc/sysconfig/network to contain the hostname we set. # skip this step when run by ipa-server-install as it always configures - # hostname if different from system hostname + # hostname tasks.backup_and_replace_hostname(fstore, statestore, options.hostname) ntp_srv_servers = [] diff --git a/ipaplatform/base/paths.py b/ipaplatform/base/paths.py index 62d9e703d..ca7eb6cf4 100644 --- a/ipaplatform/base/paths.py +++ b/ipaplatform/base/paths.py @@ -118,8 +118,6 @@ class BasePathNamespace(object): SYSCONFIG_HTTPD = "/etc/sysconfig/httpd" SYSCONFIG_KRB5KDC_DIR = "/etc/sysconfig/krb5kdc" SYSCONFIG_NAMED = "/etc/sysconfig/named" - SYSCONFIG_NETWORK = "/etc/sysconfig/network" - SYSCONFIG_NETWORK_IPABKP = "/etc/sysconfig/network.ipabkp" SYSCONFIG_NFS = "/etc/sysconfig/nfs" SYSCONFIG_NTPD = "/etc/sysconfig/ntpd" SYSCONFIG_ODS = "/etc/sysconfig/ods" diff --git a/ipaplatform/redhat/tasks.py b/ipaplatform/redhat/tasks.py index 2a110c994..bc7a9e389 100644 --- a/ipaplatform/redhat/tasks.py +++ b/ipaplatform/redhat/tasks.py @@ -343,7 +343,6 @@ class RedHatTaskNamespace(BaseTaskNamespace): statestore.backup_state('network', 'hostname', old_hostname) def restore_hostname(self, fstore, statestore): - old_filepath = paths.SYSCONFIG_NETWORK old_hostname = statestore.get_state('network', 'hostname') if old_hostname is not None: @@ -356,15 +355,6 @@ class RedHatTaskNamespace(BaseTaskNamespace): old_hostname, e ) - if fstore.has_file(old_filepath): - # This is Fedora >=18 instance that was upgraded from previous - # Fedora version which held network configuration - # in /etc/sysconfig/network - old_filepath_restore = paths.SYSCONFIG_NETWORK_IPABKP - fstore.restore_file(old_filepath, old_filepath_restore) - print("Deprecated configuration file '%s' was restored to '%s'" \ - % (old_filepath, old_filepath_restore)) - filepath = paths.ETC_HOSTNAME if fstore.has_file(filepath): fstore.restore_file(filepath) |