Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clcommon
/
__pycache__
✏️
Editing: clcustomscript.cpython-311.pyc
� ��Tj� � �* � d dl Z d dlZdZd� Zd� ZdZdS )� NzAleksandr Shyshatskyc � � t j � | � � r>t j � | � � rt j | t j � � sdS t j | � � }n# t $ r Y dS w xY w|j dk s|j dk rdS |j t j t j z z rdS dS )zReturn True only if path is absolute, a regular file, executable, owned by root, and not writable by group or other (F-13).Fr T) �os�path�isabs�isfile�access�X_OK�stat�OSError�st_uid�st_gid�st_mode�S_IWGRP�S_IWOTH)r �sts ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.41-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/clcustomscript.py�_is_safe_scriptr s� � � �G�M�M�$��� �B�G�N�N�4�$8�$8� �� �$���(�(���u�� �W�T�]�]����� � � ��u�u����� �y�A�~�~���a����u� �z�T�\�D�L�0�1� ��u��4s �!A6 �6 B�Bc �X � d} t j � t � � r�t t dd�� � 5 }|� � � }ddd� � n# 1 swxY w Y |D ]�}|� � � }|� | � � rs|� d� � }t |� � dk rK|d � � � | k r-|d � � � }t |� � r|c S ��n# t t t f$ r Y nw xY wdS ) z� Retrives custom panel script for lvectl from CL config file :return: Script full path or None if script filename not find in config �CUSTOM_GETPACKAGE_SCRIPT�rzutf-8)�encodingN�=� r � )r r �exists�CLSYSCONFIG�open� readlines�strip� startswith�split�lenr r �IOError� IndexError)�config_param_name�f� file_lines�line� line_parts�script_names r �lvectl_custompanel_scriptr+ sf � � 3�� � �7�>�>�+�&�&� /��k�3��9�9�9� +�Q��[�[�]�]� � +� +� +� +� +� +� +� +� +� +� +���� +� +� +� +�"� /� /���z�z�|�|���?�?�#4�5�5� /�!%���C���J��:���!�+�+� �1� �0C�0C�0E�0E�IZ�0Z�0Z�&0��m�&9�&9�&;�&;��*�;�7�7� /�#.�.�.�.�����W�j�)� � � ��� ���� �4s; �;D �A �D � A$�$D �'A$�(B"D �D � D'�&D'z/etc/sysconfig/cloudlinux)r r � __author__r r+ r � � r �<module>r/ sG �� � � � � ���� #� �� � �"� � �4 *���r.
💾 Save Changes
❌ Cancel