$48 GRAYBYTE WORDPRESS FILE MANAGER $22

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.217.100
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/clconfigure/__pycache__/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/clconfigure/__pycache__//watcher.cpython-311.pyc
�

Ȝ�i����ddlZddlZddlZddlZddlZddlmZddlmZej	dde��Z
dZdZdZ
d	Zd
ezZd�Zd�Zd
�Zd�Zd�Zddefd�Zd�ZdS)�N)�CLEditionDetectionError)�PKG_VERSIONz\.el\w(h?)\.z.elX.zehttps://9713d1296f804031b058b8f2d789d7ac:[email protected]/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  �J/opt/cloudlinux/venv/lib64/python3.11/site-packages/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|tj��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�info�strrr�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�/�<M�*M�d�Rd�&��L�c������L����K���	���)�a�-B�a���X��� � ��!�"�"�	
�	
�	
�
	$�K��>�>�>�>�	�a���O�QT�Ua�Qb�Qb�dg�hs�dt�dt�u�u�u��L�+�|�D�D�D�D���M�s�S^�O_�O_�`�`�`��*���.��K�0@�0@�A�A�A��[�)�)�)�)�)�)�*�*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-r6�es   rr5r5�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	r5r"rr�<module>rIs!������	�	�	�	�	�	�	�	���������:�:�:�:�:�:�!�!�!�!�!�!��2�6�/�7�K�@�@��u�
� <��2������'��	�	�	� 7�7�7�7�7�7�������:*�:*�s�:*�:*�:*�:*�zI�I�I�I�Ir


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
9 Apr 2026 8.30 AM
root / root
0755
__init__.cpython-311.opt-1.pyc
5.478 KB
12 Mar 2026 11.00 AM
root / root
0644
__init__.cpython-311.pyc
5.525 KB
9 Apr 2026 8.35 AM
root / root
0644
awp.cpython-311.opt-1.pyc
2.512 KB
12 Mar 2026 11.00 AM
root / root
0644
awp.cpython-311.pyc
2.512 KB
12 Mar 2026 11.00 AM
root / root
0644
cagefs.cpython-311.opt-1.pyc
3.137 KB
12 Mar 2026 11.00 AM
root / root
0644
cagefs.cpython-311.pyc
3.137 KB
12 Mar 2026 11.00 AM
root / root
0644
clpro.cpython-311.opt-1.pyc
1.335 KB
12 Mar 2026 11.00 AM
root / root
0644
clpro.cpython-311.pyc
1.335 KB
12 Mar 2026 11.00 AM
root / root
0644
files.cpython-311.opt-1.pyc
1.733 KB
12 Mar 2026 11.00 AM
root / root
0644
files.cpython-311.pyc
1.733 KB
12 Mar 2026 11.00 AM
root / root
0644
limits.cpython-311.opt-1.pyc
4.599 KB
12 Mar 2026 11.00 AM
root / root
0644
limits.cpython-311.pyc
4.599 KB
12 Mar 2026 11.00 AM
root / root
0644
linksafe.cpython-311.opt-1.pyc
2.333 KB
12 Mar 2026 11.00 AM
root / root
0644
linksafe.cpython-311.pyc
2.333 KB
12 Mar 2026 11.00 AM
root / root
0644
lve.cpython-311.opt-1.pyc
1.847 KB
12 Mar 2026 11.00 AM
root / root
0644
lve.cpython-311.pyc
1.847 KB
12 Mar 2026 11.00 AM
root / root
0644
packages.cpython-311.opt-1.pyc
4.543 KB
12 Mar 2026 11.00 AM
root / root
0644
packages.cpython-311.pyc
4.543 KB
12 Mar 2026 11.00 AM
root / root
0644
services.cpython-311.opt-1.pyc
2.647 KB
12 Mar 2026 11.00 AM
root / root
0644
services.cpython-311.pyc
2.647 KB
12 Mar 2026 11.00 AM
root / root
0644
watcher.cpython-311.opt-1.pyc
6.083 KB
12 Mar 2026 11.00 AM
root / root
0644
watcher.cpython-311.pyc
6.131 KB
9 Apr 2026 8.35 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF