def run(self): super(ServerUpgrade, self).run() api.bootstrap(in_server=True, context='updates', confdir=paths.ETC_IPA) api.finalize() try: server.upgrade_check(self.options) server.upgrade() except RuntimeError as e: raise admintool.ScriptError(str(e))
def run(self): super(ServerUpgrade, self).run() api.bootstrap(in_server=True, context='updates') import ipaserver.plugins.dogtag # ensure profile backend gets loaded api.finalize() try: server.upgrade_check(self.options) server.upgrade() except RuntimeError as e: raise admintool.ScriptError(str(e))
def run(self): super(ServerUpgrade, self).run() api.bootstrap(in_server=True, context='updates') api.finalize() api.Backend.ldap2.connect() try: server.upgrade_check(self.options) server.upgrade() except RuntimeError as e: raise admintool.ScriptError(str(e)) api.Backend.ldap2.disconnect()