Файловый менеджер - Редактировать - /opt/cpmigrate/environments/yum.py
Ðазад
"""Yum Environment module""" from environments.base import Environment, FatalMigrationFailure class Yum(Environment): """ Currently, runs find_and_fix_rpm_issues on the origin server to ensure that the RPM database is not corrupted. """ def __init__(self): Environment.__init__(self) self.priority = 100 def check(self, _): self.origin_fix_rpm_db() def origin_fix_rpm_db(self): """Runs find_and_fix_rpm_issues on the origin server.""" self.info("Checking RPM database on origin for corruption.") ret_code, _ = self.xfer.origin_command( '/usr/local/cpanel/scripts/find_and_fix_rpm_issues', sleep=1, ) if ret_code == 0: self.info("Origin RPM database is not corrupted.") else: raise FatalMigrationFailure( "Origin RPM database is corrupted. Cannot continue." )
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка