summaryrefslogtreecommitdiffstats
path: root/install/tools/ipactl
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2014-05-29 10:44:57 +0200
committerPetr Viktorin <pviktori@redhat.com>2014-06-16 19:48:19 +0200
commitc011bccf45ee46c41e6606e391362938271de75a (patch)
tree472f5eb65e6c783d0c0bd6bd32c4e9c992525da1 /install/tools/ipactl
parent49fcd42f8fd71b894a0953a37f10a6c326e16048 (diff)
downloadfreeipa-c011bccf45ee46c41e6606e391362938271de75a.tar.gz
freeipa-c011bccf45ee46c41e6606e391362938271de75a.tar.xz
freeipa-c011bccf45ee46c41e6606e391362938271de75a.zip
ipaplatform: Change paths dependant on ipaservices to use ipaplatform.paths
https://fedorahosted.org/freeipa/ticket/4052 Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'install/tools/ipactl')
-rwxr-xr-xinstall/tools/ipactl5
1 files changed, 3 insertions, 2 deletions
diff --git a/install/tools/ipactl b/install/tools/ipactl
index 581aacc36..44a61ae8d 100755
--- a/install/tools/ipactl
+++ b/install/tools/ipactl
@@ -35,6 +35,7 @@ from ipapython import config, dogtag
from ipaplatform import tasks
from ipapython.dn import DN
from ipaplatform import services
+from ipaplatform.paths import paths
class IpactlError(ScriptError):
pass
@@ -221,7 +222,7 @@ def ipa_start(options):
# that are already running and just return, so that the
# stop() method of the base class will simply fill in the
# service file again
- os.unlink(ipaservices.SVC_LIST_FILE)
+ os.unlink(paths.SVC_LIST_FILE)
dirsrv = services.knownservices.dirsrv
try:
@@ -303,7 +304,7 @@ def ipa_stop(options):
# remove file with list of started services
try:
- os.unlink(ipaservices.SVC_LIST_FILE)
+ os.unlink(paths.SVC_LIST_FILE)
except OSError:
pass