summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPetr Spacek <pspacek@redhat.com>2016-07-28 16:13:55 +0200
committerJan Cholasta <jcholast@redhat.com>2016-08-10 10:48:05 +0200
commit80e544e7a98ff22469e9d3a4f7bda2ed234601aa (patch)
treef0c3514d94b47417089baa3859b03d0a7f1026d7 /doc
parenta83523e37ee70a10e49b40f8880c2d0fb3088562 (diff)
downloadfreeipa-80e544e7a98ff22469e9d3a4f7bda2ed234601aa.tar.gz
freeipa-80e544e7a98ff22469e9d3a4f7bda2ed234601aa.tar.xz
freeipa-80e544e7a98ff22469e9d3a4f7bda2ed234601aa.zip
install: Call hostnamectl set-hostname only if --hostname option is used
This commit also splits hostname backup and configuration into two separate functions. This allows us to backup hostname without setting it at the same time. https://fedorahosted.org/freeipa/ticket/6071 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/guide/guide.org10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/guide/guide.org b/doc/guide/guide.org
index 6d181559f..2e852a964 100644
--- a/doc/guide/guide.org
+++ b/doc/guide/guide.org
@@ -1039,14 +1039,14 @@ def restore_context_default(filepath):
# version in platform services
restore_context = restore_context_default
-# Default implementation of backup and replace hostname that does nothing
-def backup_and_replace_hostname_default(fstore, statestore, hostname):
+# Default implementation of backup hostname that does nothing
+def backup_hostname_default(fstore, statestore):
return
-# Backup and replace system's hostname
-# Since many platforms have their own way how to store system's hostname, this method must be
+# Backup system's hostname
+# Since many platforms have their own way of handling system's hostname, this method must be
# implemented in platform services
-backup_and_replace_hostname = backup_and_replace_hostname_default
+backup_hostname = backup_hostname_default
from ipapython.platform.SUPPORTED_PLATFORM import *
#+END_SRC