File manager - Edit - /opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/public_hooks/bundle/cpanel/__pycache__/lib.cpython-311.pyc
Back
� ^I�iz3 � �L � d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZm Z m Z d dlmZm Z mZ d dlmZ d dlmZmZmZ dZdZdZd Zej � ed � � Z ej e� � Zdd�Zd � Z d� Z!d� Z"d� Z#d� Z$d� Z%d� Z&d� Z'd� Z(d� Z)d� Z*d� Z+d� Z,d� Z-d� Z.d� Z/dS )� N)�POST_MODIFY_DOMAIN�PRE_MODIFY_USER�POST_MODIFY_USER)�run_command�ExternalProgramFailed�is_user_present)�cpapi)�makedirs_secure�write_file_secure�read_file_secure� z'Unable to find username in hook cmdlinez/usr/sbin/whmapi1z/var/lve�tmpTc �V � |st dd| � d�� � dS t dd� � dS )a cPanel expects that each custom hook prints two values in the end of the execution: - status, where 1 means success - message, which explains non-1 statuses otherwise nothing really breaks, but logs are full of "script returned invalid response" msgs :param hook_name: name, path or anything else to fill message with in order to understand what exactly failed :param success: is it everything ended successfully? :return: Nothing r zFailed to execute hook zy; you can find logs in /var/log/cloudlinux/hooks/info.log and contact CloudLinux Support if you need help with the issue.r �OkN)�print)� hook_name�successs ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.34-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/public_hooks/bundle/cpanel/lib.py�print_responser "