summaryrefslogtreecommitdiffstats
path: root/ipaserver/install
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2012-02-14 09:48:32 -0500
committerRob Crittenden <rcritten@redhat.com>2012-02-15 20:27:34 -0500
commit65f40aeb8d147e30f50d128ffc290169937b6d50 (patch)
treebcbed1ac3a8a3cc1abe9beaf0043ad57b53c2858 /ipaserver/install
parentcf35dfa2bca2860aed795a30e05201a88c896a9e (diff)
downloadfreeipa-65f40aeb8d147e30f50d128ffc290169937b6d50.tar.gz
freeipa-65f40aeb8d147e30f50d128ffc290169937b6d50.tar.xz
freeipa-65f40aeb8d147e30f50d128ffc290169937b6d50.zip
Use FQDN in place of FQHN for consistency in sub_dict.
For some reason lost to history the sub_dict in dsinstance and cainstance used FQHN instead of FQDN. This made upgrade scripts not work reliably as the variable might be different depending on context. Use FQDN universally instead.
Diffstat (limited to 'ipaserver/install')
-rw-r--r--ipaserver/install/cainstance.py4
-rw-r--r--ipaserver/install/dsinstance.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/ipaserver/install/cainstance.py b/ipaserver/install/cainstance.py
index 94b9d6d05..692a53d48 100644
--- a/ipaserver/install/cainstance.py
+++ b/ipaserver/install/cainstance.py
@@ -77,7 +77,7 @@ TOMCAT_SERVER_PORT=9701
# information
INF_TEMPLATE = """
[General]
-FullMachineName= $FQHN
+FullMachineName= $FQDN
SuiteSpotUserID= $USER
SuiteSpotGroup= $GROUP
ServerRoot= $SERVER_ROOT
@@ -266,7 +266,7 @@ class CADSInstance(service.Service):
def __setup_sub_dict(self):
server_root = dsinstance.find_server_root()
- self.sub_dict = dict(FQHN=self.fqdn, SERVERID=self.serverid,
+ self.sub_dict = dict(FQDN=self.fqdn, SERVERID=self.serverid,
PASSWORD=self.dm_password, SUFFIX=self.suffix.lower(),
REALM=self.realm_name, USER=PKI_DS_USER,
SERVER_ROOT=server_root, DOMAIN=self.domain,
diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py
index 2fb749f17..c66f2a7f1 100644
--- a/ipaserver/install/dsinstance.py
+++ b/ipaserver/install/dsinstance.py
@@ -100,7 +100,7 @@ def is_ds_running(server_id=''):
INF_TEMPLATE = """
[General]
-FullMachineName= $FQHN
+FullMachineName= $FQDN
SuiteSpotUserID= $USER
SuiteSpotGroup= $GROUP
ServerRoot= $SERVER_ROOT
@@ -275,7 +275,7 @@ class DsInstance(service.Service):
def __setup_sub_dict(self):
server_root = find_server_root()
- self.sub_dict = dict(FQHN=self.fqdn, SERVERID=self.serverid,
+ self.sub_dict = dict(FQDN=self.fqdn, SERVERID=self.serverid,
PASSWORD=self.dm_password,
RANDOM_PASSWORD=self.generate_random(),
SUFFIX=self.suffix.lower(),