관리-도구
편집 파일: clpassenger_detectlib.cpython-37.pyc
B �v6d� � @ s@ d dl mZ d dl mZ d dl mZ d dlZd dlZdd� ZdS )� )�print_function)�division)�absolute_importNc C sF d} t � d�}tj�d�}tj�d�}tj�| �s>|s>|s>|rBdS 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)Zorig_passenger_fileZpassenger_dirsZis_ea4_ruby24_passengerZis_ea4_ruby27_passenger� r �Q/opt/alt/python37/lib/python3.7/site-packages/clselector/clpassenger_detectlib.py�is_clpassenger_active s r )� __future__r r r r r r r r r r �<module> s