mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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>
This commit is contained in:
parent
3d17bf8e63
commit
c43c5d1e43
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user