mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Server Upgrade: Move code from ipa-upgradeconfig to separate module
This also prevent the script ipa-upgradeconfig execute upgrading. Upgrade of services is called from ipa-server-upgrade https://fedorahosted.org/freeipa/ticket/4904 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
parent
6a4b428120
commit
027515230a
File diff suppressed because it is too large
Load Diff
@ -12,6 +12,7 @@ from ipaplatform.paths import paths
|
||||
from ipapython import admintool, ipautil
|
||||
from ipaserver.install import dsinstance
|
||||
from ipaserver.install import installutils
|
||||
from ipaserver.install.server import upgrade_configuration
|
||||
from ipaserver.install.upgradeinstance import IPAUpgrade
|
||||
from ipaserver.install.ldapupdate import BadSyntax
|
||||
|
||||
@ -95,16 +96,10 @@ class ServerUpgrade(admintool.AdminTool):
|
||||
# store new data version after upgrade
|
||||
installutils.store_version()
|
||||
|
||||
# FIXME: remove this when new installer will be ready
|
||||
# execute upgrade of configuration
|
||||
cmd = ['ipa-upgradeconfig', ]
|
||||
if options.verbose:
|
||||
cmd.append('--debug')
|
||||
if options.quiet:
|
||||
cmd.append('--quiet')
|
||||
|
||||
self.log.info('Executing ipa-upgradeconfig, please wait')
|
||||
ipautil.run(cmd)
|
||||
print 'Upgrading IPA services'
|
||||
self.log.info('Upgrading the configuration of the IPA services')
|
||||
upgrade_configuration()
|
||||
self.log.info('The IPA services were upgraded')
|
||||
|
||||
def handle_error(self, exception):
|
||||
return installutils.handle_error(exception, self.log_file_name)
|
||||
|
1376
ipaserver/install/server.py
Normal file
1376
ipaserver/install/server.py
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user