관리-도구
편집 파일: clpassenger_detectlib.cpython-311.pyc
� %�4g� � �@ � d dl mZ d dl mZ d dl mZ d dlZd dlZd� ZdS )� )�print_function)�division)�absolute_importNc � � d} t j d� � }t j � d� � }t j � d� � }t j � | � � s|s|s|rdS dS )a- Detect if passenger active on server. Detects: - CL passenger ea-apache24-mod-alt-passenger/alt-mod-passenger - CL EA4 passenger ea-ruby24-mod_passenger - CL EA4 passenger ea-ruby27-mod_passenger - CentOS passenger :return bool: True/False - passenger found/not found z/usr/bin/passengerz/opt/passenger*z./opt/cpanel/ea-ruby24/root/usr/share/passengerz./opt/cpanel/ea-ruby27/root/usr/share/passengerTF)�glob�os�path�isdir�isfile)�orig_passenger_file�passenger_dirs�is_ea4_ruby24_passenger�is_ea4_ruby27_passengers �W/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselector/clpassenger_detectlib.py�is_clpassenger_activer s| � � /���Y�0�1�1�N� �g�m�m�,\�]�]�� �g�m�m�,\�]�]�� �w�~�~�)�*�*� �n� �@W� �[r� ��t��5� )� __future__r r r r r r � r r �<module>r sh �� &� %� %� %� %� %� � � � � � � &� &� &� &� &� &� ���� � � � �� � � � r