HEX
Server: Apache
System: Linux insrv.serversdaddy.com 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64
User: jsaha (1066)
PHP: 8.3.6
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/clconfigure/__pycache__/cagefs.cpython-37.pyc
B

U�]}����@s�ddlZddlZddlZddlmZddlmZddlmZm	Z	ddl
mZdZdd�Z
e
e	d	�d
d���Ze
e	d�d
d���Zdd�ZdS)�N)�Feature)�is_panel_feature_supported)�run�task)�install_packagez/usr/sbin/cagefsctlcst����fdd��}|S)Ncs<ttj�st�d�dStj�t�s2t�d�dS�||�S)Nz.Feature 'CageFS' is not supported. Skipping...z$CageFS is not installed. Skipping...)	rrZCAGEFS�logging�debug�os�path�exists�	CAGEFSCTL)�args�kwargs)�func��py/clconfigure/cagefs.py�	decorators


z'_skip_without_cagefs.<locals>.decorator)�	functools�wraps)rrr)rr�_skip_without_cagefssrzCleaning CageFS environmentcCsDttj�rt�d�dSttdg�}|jdkr@t�d|j	|j
�dS)Nz%LVE feature is supported. Skipping...z--clean-without-lve-environmentrzAUnable to clean non-LVE CageFS enviroment. stdout: %s, stderr: %s)rrZLVErrrr�exitcode�warning�stdout�stderr)�resultrrr�$clean_cagefs_without_lve_environment!s


rzReconfiguring CageFScCstddd�t�dS)NZcagefsT)Z	reinstall)r�_rebuild_apache_directadminrrrr�reconfigure_cagefs.srcCsBd}tj�|�sdSt|ddg�}|jdkr>t�d|j|j�dS)Nz"/usr/local/directadmin/directadminZbuildZapacherz6Error during rebuilding Apache. stdout: %s, stderr: %s)	r	r
rrrrrrr)Zda_binrrrrr5s
r)rrr	Zclcommon.constrZclcommon.cpapirZclconfigurerrZclconfigure.packagesrrrrrrrrrr�<module>s