diff options
author | Tomas Babej <tbabej@redhat.com> | 2014-06-17 11:45:43 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-06-26 09:22:21 +0200 |
commit | e5e42fc83ae74f0e0c68e68417a39fe6f2f2ae63 (patch) | |
tree | 2df440cfd523535eedafabc0a23e140e09bc0eab /install/tools/ipa-replica-manage | |
parent | c8511d3b3baa389069156bf9991a9f4c7d64cf4a (diff) | |
download | freeipa-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-x | install/tools/ipa-replica-manage | 3 |
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() |