Mini Shell
�
'!<�lǎN� �$ � d dl mZ d dl mZ d dl mZ d dl mZ d dlmZ ej � � d dlT d dl Z d dl
Zd dlZd dl
Z
d dlZd dlZd dlmc mZ d dlZd dlmZ d dlZd d lmZ d d
lmZ d dlZd dlZd dlZd dlmZ d dl Z d dl!m"Z"m#Z# d d
l$m%Z%m&Z& d dl'm(Z(m)Z)m*Z* da+dZ,dZ-dZ.dZ/dZ0dZ1dZ2dZ3dZ4d� Z5dZ6d� Z7d� Z8d� Z9d� Z:d8d �Z;d!� Z<d"� Z=d#� Z>d9d$�Z?d%� Z@d&� ZAd'� ZBe,fd(�ZCd)� ZDd*� ZEd+� ZFd,� ZGd-� ZHd.� ZId/� ZJd0� ZKd9d1�ZLd9d2�ZMd3� ZNd4� ZOd5� ZPd6� ZQd7� ZRdS ):� )�print_function)�absolute_import)�division)�unicode_literals)�standard_library)�*N)�
parse_version)�touch)�write_file_content)�$install_ispmanager_directory_exclude)�is_ea4_enabled�read_cpanel_ea4_php_conf)�PROXY_COMMANDS�check_cagefs_skeleton)�mod_makedirs�get_file_lines�delete_line_from_file� z/usr/local/bin/lsphpz/var/run/postgresz/etc/sysconfig/postgresz/var/run/postgresqlz
hdir:/.cagefsz!/etc/cagefs/cagefs.base.home.dirsz/var/lib/php/sessionz/usr/local/directadmin/sharedz"/usr/local/directadmin/directadminc � � t j � � sd S t j � t
� � r.t
j d� t
� � � � d S d� t j
� � } t j � t
� � r[t t
d� � 5 }|�
� � }| |vr|� | � � d d d � � n# 1 swxY w Y nWt t
d� � 5 }|� d� � |� | � � d d d � � n# 1 swxY w Y t j t
d� � d S # t t"