diff options
Diffstat (limited to 'install/tools/ipa-server-install')
-rwxr-xr-x | install/tools/ipa-server-install | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install index 187885b7c..41791c823 100755 --- a/install/tools/ipa-server-install +++ b/install/tools/ipa-server-install @@ -56,12 +56,12 @@ from ipaserver.plugins.ldap2 import ldap2 from ipapython import sysrestore from ipapython.ipautil import * -import ipapython.services as ipaservices from ipalib import api, errors, util from ipalib.parameters import IA5Str from ipapython.config import IPAOptionParser from ipalib.dn import DN from ipalib.x509 import load_certificate_from_file, load_certificate_chain_from_file +from ipapython import services as ipaservices pw_name = None uninstalling = False @@ -410,7 +410,7 @@ def check_dirsrv(unattended): sys.exit(1) try: - service.stop("dirsrv") + ipaservices.knownservices.dirsrv.stop() except: pass @@ -478,7 +478,7 @@ def uninstall(): except KeyError: logging.info("Group %s already removed", dsinstance.DS_GROUP) - service.service_off('ipa') + ipaservices.knownservices.ipa.disable() return 0 @@ -989,7 +989,7 @@ def main(): #Everything installed properly, activate ipa service. - service.service_on('ipa') + ipaservices.knownservices.ipa.enable() print "==============================================================================" print "Setup complete" @@ -1013,7 +1013,7 @@ def main(): print "\t This ticket will allow you to use the IPA tools (e.g., ipa user-add)" print "\t and the web user interface." - if not service.is_running("ntpd"): + if not ipaservices.knownservices.ntpd.is_running(): print "\t3. Kerberos requires time synchronization between clients" print "\t and servers for correct operation. You should consider enabling ntpd." |