summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/install/dsinstance.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py
index ea9f26da2..254c575c0 100644
--- a/ipaserver/install/dsinstance.py
+++ b/ipaserver/install/dsinstance.py
@@ -274,10 +274,14 @@ class DsInstance(service.Service):
schema_dirname(self.serverid) + "60basev2.ldif")
shutil.copyfile(ipautil.SHARE_DIR + "60policyv2.ldif",
schema_dirname(self.serverid) + "60policyv2.ldif")
- shutil.move(schema_dirname(self.serverid) + "05rfc2247.ldif",
- schema_dirname(self.serverid) + "05rfc2247.ldif.old")
- shutil.copyfile(ipautil.SHARE_DIR + "05rfc2247.ldif",
- schema_dirname(self.serverid) + "05rfc2247.ldif")
+ try:
+ shutil.move(schema_dirname(self.serverid) + "05rfc2247.ldif",
+ schema_dirname(self.serverid) + "05rfc2247.ldif.old")
+ shutil.copyfile(ipautil.SHARE_DIR + "05rfc2247.ldif",
+ schema_dirname(self.serverid) + "05rfc2247.ldif")
+ except IOError:
+ # Does not apply with newer DS releases
+ pass
def __restart_instance(self):
try: