Edit File: watcher.cpython-311.opt-1.pyc
� 5/9e� � � � d dl Z d dlZd dlZd dlZd dlZd dlmZmZ d dlm Z ej dde � � ZdZdZ dZd Zd ez Zd� Zd� Zd � Zd� Zd� Zd� Zd� ZdS )� N)� CLEditions�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 �R � t j ddd| gddt j �� � dS )z$ Run reconfiguration script zcloudlinux-customizer�reconfigurez-tT)�check�text�stderrN)� subprocess�run�STDOUT��current_editions �py/clconfigure/watcher.py�_reconfigure_serverr ! sD � � �N����o�� '+� �*�+� � � � � � � c �0 � |dv rt |� � dS dS )z? Called when saved edition does not match current one. �� shared_pro�admin�soloN�r )�previous_editionr s r �_on_edition_changedr 0 �, � � �9�9�9��O�,�,�,�,�,� :�9r c �0 � | dv rt | � � dS dS )zI Called when saved server id detected as one registered recently r Nr r s r �_on_server_newly_registeredr 8 r r c �n � t j � t � � S # t $ r Y dS w xY w)zV Assume that last registration time is the date of systemid modification. N)�os�path�getmtime�SYSTEMID_FILE_PATH�FileNotFoundError� r r �_get_registration_timer&