mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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>
This commit is contained in:
committed by
Jan Cholasta
parent
a83523e37e
commit
80e544e7a9
@@ -2525,7 +2525,8 @@ def install(options, env, fstore, statestore):
|
||||
if options.hostname and not options.on_master:
|
||||
# skip this step when run by ipa-server-install as it always configures
|
||||
# hostname
|
||||
tasks.backup_and_replace_hostname(fstore, statestore, options.hostname)
|
||||
tasks.backup_hostname(fstore, statestore)
|
||||
tasks.set_hostname(options.hostname)
|
||||
|
||||
ntp_srv_servers = []
|
||||
if not options.on_master and options.conf_ntp:
|
||||
|
||||
Reference in New Issue
Block a user