Submit
Path:
~
/
/
opt
/
cloudlinux
/
venv
/
lib64
/
python3.11
/
site-packages
/
__pycache__
/
File Content:
migration_ve1_to_v2.cpython-311.pyc
� 2&�i� � �Z � d dl Z d dlZd dlZd dlmZ d� Zd� Zedk r e� � dS dS )� N)� ve_configc �� � dt t j � � � � z }t |d� � 5 }|� | � d�� � � � d d d � � d S # 1 swxY w Y d S )Nz/etc/container/ve.cfg.�wbzutf-8)�encoding)�str�time�open�write�toxml)�xml�BACK_IP_NAME�backups �py/migration_ve1_to_v2.py� create_backupr s� � �+�c�$�)�+�+�.>�.>�>�L� �l�D� !� !� 2�V����S�Y�Y��Y�0�0�1�1�1�2� 2� 2� 2� 2� 2� 2� 2� 2� 2� 2� 2���� 2� 2� 2� 2� 2� 2s �*A+�+A/�2A/c �h � t j d� � t j � � t j dk rt j d� � t t j � � t j � d� � } t | � � dk rpt j � d� � }|� t j � d� � � � t j � |� � t j d� � t j � � � }t j D ]�}d}d}|� d� � |v rd}t j |� d� � � � }t |� � dk rd }nt |� � d k r |d }nd}|r|�|r6t) d t+ |� d� � � � z dz � � ��|�|� d|� � ��t/ j t j � � d S ) NT� r �version�2z list-packagesF�id� zPackage z is duplicated. Skipped.�reseller)� lvectllib�get_global_lock�get_XML_cfg�ve_cfg_version�sys�exitr �ve_cfg�ve_lveconfig�getElementsByTagName�len� createElement�appendChild�createTextNode�GetControlPanelUsers�packages_users�copy� ve_package�getAttribute�guess_reseller_by_package�printr �setAttributer �save_xml)r �ve_cfg_vers�packages�package�found_in_standalone�found_in_reseller� reseller_listr s r �mainr4 s � � ��d�#�#�#� �������1�$�$��������)�"�#�#�#��+�@�@��K�K�N� �>���a����&�4�4�Y�?�?����� � 0� ?� ?�� D� D�E�E�E���*�*�;�7�7�7� �"�?�3�3�3��'�,�,�.�.�H��'� 7� 7��#��!������%�%��1�1�"&��!�;�G�<P�<P�QU�<V�<V�W�W� ��}����"�"��H�H� �� � �1� $� $�$�Q�'�H�H� $��� �H�$8�=N�$8��*�s�7�#7�#7��#=�#=�>�>�>�A[�[�\�\�\����� � ��X�6�6�6�� ��y�'�(�(�(�(�(� �__main__)r r r � clveconfigr r r4 �__name__� r5 r �<module>r: sz �� � � � � ���� � � � � � � � � � �2� 2� 2�$)� $)� $)�N �z����D�F�F�F�F�F� �r5
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
_pyrsistent_version.cpython-311.pyc
231 bytes
0644
cl_proc_hidepid.cpython-311.opt-1.pyc
6117 bytes
0644
cl_proc_hidepid.cpython-311.pyc
6117 bytes
0644
clcontrollib.cpython-311.opt-1.pyc
73273 bytes
0644
clcontrollib.cpython-311.pyc
73273 bytes
0644
cldetectlib.cpython-311.opt-1.pyc
24584 bytes
0644
cldetectlib.cpython-311.pyc
24584 bytes
0644
cldiaglib.cpython-311.opt-1.pyc
67290 bytes
0644
cldiaglib.cpython-311.pyc
67290 bytes
0644
cli_utils.cpython-311.opt-1.pyc
2161 bytes
0644
cli_utils.cpython-311.pyc
2161 bytes
0644
cllicenselib.cpython-311.opt-1.pyc
14192 bytes
0644
cllicenselib.cpython-311.pyc
14192 bytes
0644
clsetuplib.cpython-311.opt-1.pyc
6201 bytes
0644
clsetuplib.cpython-311.pyc
6201 bytes
0644
clsudo.cpython-311.opt-1.pyc
19985 bytes
0644
clsudo.cpython-311.pyc
19985 bytes
0644
configparser.cpython-311.pyc
1651 bytes
0644
ddt.cpython-311.pyc
15338 bytes
0644
docopt.cpython-311.pyc
37908 bytes
0644
getcontrolpanel.cpython-311.opt-1.pyc
1022 bytes
0644
getcontrolpanel.cpython-311.pyc
1022 bytes
0644
lveapi.cpython-311.opt-1.pyc
22867 bytes
0644
lveapi.cpython-311.pyc
22867 bytes
0644
lvectllib.cpython-311.opt-1.pyc
144172 bytes
0644
lvectllib.cpython-311.pyc
144172 bytes
0644
lvestat.cpython-311.opt-1.pyc
7139 bytes
0644
lvestat.cpython-311.pyc
7139 bytes
0644
mccabe.cpython-311.pyc
20564 bytes
0644
migration_ve1_to_v2.cpython-311.opt-1.pyc
3231 bytes
0644
migration_ve1_to_v2.cpython-311.pyc
3231 bytes
0644
pam.cpython-311.pyc
10133 bytes
0644
pep8ext_naming.cpython-311.pyc
28840 bytes
0644
py.cpython-311.pyc
452 bytes
0644
pycodestyle.cpython-311.pyc
121391 bytes
0644
remount_proc.cpython-311.opt-1.pyc
773 bytes
0644
remount_proc.cpython-311.pyc
773 bytes
0644
remove_ubc.cpython-311.opt-1.pyc
10362 bytes
0644
remove_ubc.cpython-311.pyc
10362 bytes
0644
schema.cpython-311.pyc
44176 bytes
0644
secureio.cpython-311.opt-1.pyc
27939 bytes
0644
secureio.cpython-311.pyc
27939 bytes
0644
six.cpython-311.pyc
46395 bytes
0644
typing_extensions.cpython-311.pyc
131517 bytes
0644
N4ST4R_ID | Naxtarrr