summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2015-05-21 14:40:22 +0200
committerPetr Vobornik <pvoborni@redhat.com>2015-05-22 15:56:33 +0200
commitc43c5d1e437cffacc64220935ee6dd83a8e72a89 (patch)
treee467f65f4385c7dd0aac81673db363a51e7fe4fa /ipaserver
parent3d17bf8e639616893d6937d98662ccc7541d1e23 (diff)
downloadfreeipa-c43c5d1e437cffacc64220935ee6dd83a8e72a89.tar.gz
freeipa-c43c5d1e437cffacc64220935ee6dd83a8e72a89.tar.xz
freeipa-c43c5d1e437cffacc64220935ee6dd83a8e72a89.zip
Server Upgrade: Fix: execute schema update
Accidentaly schema upgrade has not been executed. https://fedorahosted.org/freeipa/ticket/4904 Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/install/ipa_server_upgrade.py6
1 files changed, 5 insertions, 1 deletions
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()