summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-replica-manage
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2014-06-17 11:45:43 +0200
committerPetr Viktorin <pviktori@redhat.com>2014-06-26 09:22:21 +0200
commite5e42fc83ae74f0e0c68e68417a39fe6f2f2ae63 (patch)
tree2df440cfd523535eedafabc0a23e140e09bc0eab /install/tools/ipa-replica-manage
parentc8511d3b3baa389069156bf9991a9f4c7d64cf4a (diff)
downloadfreeipa-e5e42fc83ae74f0e0c68e68417a39fe6f2f2ae63.tar.gz
freeipa-e5e42fc83ae74f0e0c68e68417a39fe6f2f2ae63.tar.xz
freeipa-e5e42fc83ae74f0e0c68e68417a39fe6f2f2ae63.zip
ipaplatform: Move paths from installers to paths module
Part of: https://fedorahosted.org/freeipa/ticket/4052 Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'install/tools/ipa-replica-manage')
-rwxr-xr-xinstall/tools/ipa-replica-manage3
1 files changed, 2 insertions, 1 deletions
diff --git a/install/tools/ipa-replica-manage b/install/tools/ipa-replica-manage
index ee7aef881..d468850e5 100755
--- a/install/tools/ipa-replica-manage
+++ b/install/tools/ipa-replica-manage
@@ -38,6 +38,7 @@ from ipapython.dn import DN
from ipapython.config import IPAOptionParser
from ipaclient import ipadiscovery
from xmlrpclib import MAXINT
+from ipaplatform.paths import paths
# dict of command name and tuples of min/max num of args needed
commands = {
@@ -1144,7 +1145,7 @@ def set_DNA_range(hostname, range, realm, dirman_passwd, next_range=False,
def main():
if os.getegid() == 0:
installutils.check_server_configuration()
- elif not os.path.exists('/etc/ipa/default.conf'):
+ elif not os.path.exists(paths.IPA_DEFAULT_CONF):
sys.exit("IPA is not configured on this system.")
options, args = parse_options()