mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Use the FQDN and not just the hostname internally.
This commit is contained in:
parent
0573389370
commit
cc23838db2
@ -34,7 +34,7 @@ from types import NoneType
|
|||||||
import os
|
import os
|
||||||
from os import path
|
from os import path
|
||||||
import sys
|
import sys
|
||||||
from socket import gethostname
|
from socket import getfqdn
|
||||||
|
|
||||||
from base import check_name
|
from base import check_name
|
||||||
from constants import CONFIG_SECTION
|
from constants import CONFIG_SECTION
|
||||||
@ -443,7 +443,7 @@ class Env(object):
|
|||||||
self.__doing('_bootstrap')
|
self.__doing('_bootstrap')
|
||||||
|
|
||||||
# Set run-time variables (cannot be overridden):
|
# Set run-time variables (cannot be overridden):
|
||||||
self.host = gethostname()
|
self.host = getfqdn()
|
||||||
self.ipalib = path.dirname(path.abspath(__file__))
|
self.ipalib = path.dirname(path.abspath(__file__))
|
||||||
self.site_packages = path.dirname(self.ipalib)
|
self.site_packages = path.dirname(self.ipalib)
|
||||||
self.script = path.abspath(sys.argv[0])
|
self.script = path.abspath(sys.argv[0])
|
||||||
|
Loading…
Reference in New Issue
Block a user