mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipaplatform: Move all filesystem paths to ipaplatform.paths module
https://fedorahosted.org/freeipa/ticket/4052 Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
committed by
Petr Viktorin
parent
c7edd7b68c
commit
4d2ef43f28
@@ -22,6 +22,7 @@ import sys
|
||||
import shutil
|
||||
import random
|
||||
import traceback
|
||||
from ipaplatform.paths import paths
|
||||
from ipapython.ipa_log_manager import *
|
||||
|
||||
from ipaserver.install import installutils
|
||||
@@ -30,7 +31,7 @@ from ipaserver.install import schemaupdate
|
||||
from ipaserver.install import ldapupdate
|
||||
from ipaserver.install import service
|
||||
|
||||
DSBASE = '/etc/dirsrv/slapd-'
|
||||
DSBASE = paths.ETC_DIRSRV_SLAPD_INSTANCE_TEMPLATE
|
||||
DSE = 'dse.ldif'
|
||||
|
||||
class IPAUpgrade(service.Service):
|
||||
@@ -53,8 +54,8 @@ class IPAUpgrade(service.Service):
|
||||
ext += h
|
||||
service.Service.__init__(self, "dirsrv")
|
||||
serverid = dsinstance.realm_to_serverid(realm_name)
|
||||
self.filename = '%s%s/%s' % (DSBASE, serverid, DSE)
|
||||
self.savefilename = '%s%s/%s.ipa.%s' % (DSBASE, serverid, DSE, ext)
|
||||
self.filename = '%s/%s' % (DSBASE % serverid, DSE)
|
||||
self.savefilename = '%s/%s.ipa.%s' % (DSBASE % serverid, DSE, ext)
|
||||
self.live_run = live_run
|
||||
self.files = files
|
||||
self.modified = False
|
||||
|
||||
Reference in New Issue
Block a user