§ ½@¾jÁãó¶—ddlZddlZddlZddlZddlZddlmZddlmZej dde¦«Z dZ dZ dZ d Zd ezZd „Zd „Zd „Zd„Zd„Zddefd„Zd„ZdS)éN)ÚCLEditionDetectionError)Ú PKG_VERSIONz \.el\w(h?)\.z.elX.zehttps://9713d1296f804031b058b8f2d789d7ac:8ddacae32d8246cf8b25cf826bf3fc0a@cl.sentry.cloudlinux.com/12z/var/lve/.edition.previousz/etc/sysconfig/rhn/systemidi€QécóZ—tjd|rdndd|gddtj¬¦«dS)z$ Run reconfiguration script z/usr/sbin/cloudlinux-customizerÚ preconfigureÚ reconfigurez-tT)ÚcheckÚtextÚstderrN)Ú subprocessÚrunÚSTDOUT©Úcurrent_editionÚ is_pre_checks úpy/clconfigure/watcher.pyÚ_reconfigure_serverrsK€õ„NØ *¸lÐ,]¨N¨NÐP]Ð_cÐetÐuØØ ÝÔ ð ñôðððócó&—t||¦«dS)z? Called when saved edition does not match current one. N©r)Úprevious_editionrrs rÚ_on_edition_changedr-ó€õ˜¨Ñ6Ô6Ð6Ð6Ð6rcó&—t||¦«dS)zI Called when saved server id detected as one registered recently Nrrs rÚ_on_server_newly_registeredr4rrcón— tj t¦«S#t$rYdSwxYw)zV Assume that last registration time is the date of systemid modification. N)ÚosÚpathÚgetmtimeÚSYSTEMID_FILE_PATHÚFileNotFoundError©rrÚ_get_registration_timer#;s@€ð ÝŒw×ÒÕ 2Ñ3Ô3Ð3øÝ ððð؈tˆtðøøøó ‚#&¦ 4³4cón— tj t¦«S#t$rYdSwxYw)zZ Assume that last check time is equal to the date of last cache modification. N)rrrÚLAST_KNOWN_EDITION_CACHE_PATHr!r"rrÚ_get_last_check_timer'Fs@€ð ÝŒw×ÒÕ =Ñ>Ô>Ð>øÝ ððð؈tˆtðøøør$FÚ new_editioncó¢— ttd¬¦«5}| ¦«}ddd¦«n #1swxYwYn#t$rd}YnwxYwt ¦«}|duo||k}|duo|t j¦«t z k}t¦«}|dup |duo||ko|}tj dt|¦«t|¦«t|¦«¦«|rC|rAtj dt|¦«t|¦«¦«t||¦«nf|rBtj dt|¦«t|¦«¦«t|||¦«n"tj dt|¦«¦«|s4tj dt|¦«¦«t|¬ ¦«dSdS) a  Compares current edition with latest saved in file and @param new_edition: provides information about new edition that server is using Depending on is_pre_check this edition can either be already applied or just planning to be installed @param is_pre_check: True means that current check is executed BEFORE new jwt is actually saved in jwt.token file False means that registration is complete and jwt.token file was updated with new edition token úutf-8©ÚencodingNzYChecking edition registration data: registration time=%s, last edition=%s, new edition=%szJNew server registration detected, last check time=%s, registration time=%sz8Edition change detected, last edition=%s, new edition=%sz6Nothing to do, requested edition=%s already configuredzSaving new edition="%s")Úedition)Úopenr&Úreadr!r#ÚtimeÚSYSTEMID_NEW_TIMEr'ÚloggingÚdebugÚstrÚinforrÚ save_edition) r(rÚfÚ last_editionÚregistration_timeÚis_edition_changedÚis_registration_freshÚlast_check_timeÚ!is_last_check_before_registrations rr r Qs^€ðÝ Õ/¸'Ð BÑ BÔ Bð $ÀaØŸ6š6™8œ8ˆLð $ð $ð $ñ $ô $ð $ð $ð $ð $ð $ð $øøøð $ð $ð $ð $øøå ðððØˆ ˆ ˆ ðøøøõ/Ñ0Ô0ÐØ%¨TÐ1ÐQ°lÀkÒ6QÐð.°TÐ9ÐtÐ>OÕTXÔT]ÑT_ÔT_ÕbsÑTsÒ>tÐå*Ñ,Ô,€Oð *9¸DÐ)@ð)Ø Ð%Ðd¨/ÐÔ>Ð>Ð>Ø ðbÝŒ ÐOÕQTÐUaÑQbÔQbÕdgÐhsÑdtÔdtÑuÔuÐuݘL¨+°|ÑDÔDÐDÐDåŒ ÐNÕPSÐT_ÑP`ÔP`ÑaÔaÐað ð*ÝŒ Ð/µ°[Ñ1AÔ1AÑBÔBÐBݘ[Ð)Ñ)Ô)Ð)Ð)Ð)ð*ð*s.‚A˜9­ A¹=½AÁ=ÁAÁ AÁAcóì— ttdd¬¦«5}| |¦«ddd¦«dS#1swxYwYdS#t$r }t jd|¦«Yd}~dSd}~wwxYw)z4 Stores current edition value in cache file Úwr*r+Nz*Unable to detect current edition, error=%s)r.r&Úwriterr2Úwarning)r-r7Úes rr6r6ŽsÙ€ðIÝ Õ/°¸wÐ GÑ GÔ Gð È1Ø �GŠG�GÑ Ô Ð ð ð ð ñ ô ð ð ð ð ð ð ð øøøð ð ð ð ð ð øå "ðIðIðIÝŒÐDÀaÑHÔHÐHÐHÐHÐHÐHÐHÐHøøøøðIøøøs7‚A ™<¯ A ¼AÁA ÁAÁA Á A3ÁA.Á.A3)F)r2rÚrer r0Úclcommon.lib.cleditionrÚ lve_utilsrÚsubÚPKG_VERSION_TINYÚ SENTRY_DSNr&r Ú_SECONDS_IN_DAYr1rrrr#r'r4r r6r"rrúrJs!ðð €€€Ø € € € Ø € € € ØÐÐÐØ € € € à:Ð:Ð:Ð:Ð:Ð:à!Ð!Ð!Ð!Ð!Ð!à�2”6˜/¨7°KÑ@Ô@Ððu€ Ø <ÐØ2Ðð€Ø˜Ñ'Ðð ð ð ð 7ð7ð7ð7ð7ð7ððððððð:*ð:*�sð:*ð:*ð:*ð:*ðzIðIðIðIðIr