From c43c5d1e437cffacc64220935ee6dd83a8e72a89 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Thu, 21 May 2015 14:40:22 +0200 Subject: Server Upgrade: Fix: execute schema update Accidentaly schema upgrade has not been executed. https://fedorahosted.org/freeipa/ticket/4904 Reviewed-By: Fraser Tweedale --- ipaserver/install/ipa_server_upgrade.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ipaserver') diff --git a/ipaserver/install/ipa_server_upgrade.py b/ipaserver/install/ipa_server_upgrade.py index 7e85c0dca..6236e2ed0 100644 --- a/ipaserver/install/ipa_server_upgrade.py +++ b/ipaserver/install/ipa_server_upgrade.py @@ -2,6 +2,7 @@ # Copyright (C) 2015 FreeIPA Contributors see COPYING for license # +import os import sys import krbV @@ -9,6 +10,7 @@ import krbV from ipalib import api from ipaplatform.paths import paths from ipapython import admintool, ipautil +from ipaserver.install import dsinstance from ipaserver.install import installutils from ipaserver.install.upgradeinstance import IPAUpgrade from ipaserver.install.ldapupdate import BadSyntax @@ -73,7 +75,9 @@ class ServerUpgrade(admintool.AdminTool): "system") realm = krbV.default_context().default_realm - data_upgrade = IPAUpgrade(realm) + schema_files = [os.path.join(ipautil.SHARE_DIR, f) for f + in dsinstance.ALL_SCHEMA_FILES] + data_upgrade = IPAUpgrade(realm, schema_files=schema_files) try: data_upgrade.create_instance() -- cgit