ÃedZddlZddlZddlmZddlmZddlZddl m Z ddl m Z ddl mZddl mZdd lmZdd lmZdd lmZdd lmZeeZd Zde ddZedkr edSdS)zbThis module import peewee_migrate and apply migrations, for Imunify-AV it's entrypoint for serviceN) getLogger)migrator)app) configure)Core)Model)Router)systemd_notifier)db) tls_checkctdtjtjjt jtj tj  tj d5tt|t}tt_|dddn #1swxYwYtjdS#tjwxYw)z4Apply migrations: restructure db, config files, etc.zApplying database migrations... EXCLUSIVE)migrations_dirsloggerN)rinfor notify AgentState MIGRATINGr resetr initrPATHatomicr rLOGGERrunclose)rrouters L/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/migrate.pyapply_migrationsrs KK1222,7ABBBOGEJ Y{ # #   /F%HO JJLLL                  s10C2AC C2CC2CC22Ddefence360agent start_pkgrc6tjtj|tjjtj tj j ttjt dtj tj jtjt$jt$jdd|gt$jddzdS)zoEntry point for Imunify-AV service. Apply migrations, and then replace process with {start_pkg}.run module.zStarting main process...z-mz{}.runN)osumaskr FILE_UMASKr internalsr reconfigurer rrREADYrrMIGRATIONS_DIRSrSTARTINGexecvsys executableformatargvr s rrr2sHT_ IKKK$00222,7=>>>S())) KK*+++,7@AAAH  xy99:SXabb\I__main__)__doc__r$r-loggingrpeewee_migrater defence360agent.internals.loggerrdefence360agent.applicationr$defence360agent.application.settingsr defence360agent.contracts.configrrdefence360agent.routerr defence360agent.subsysr defence360agent.model.instancer defence360agent.modelr __name__rrrr1rr@sE ######''''++++++::::::111111222222))))))333333------++++++ 8  4')       zCEEEEEr1