HEX
Server: Apache
System: Linux cp11.instainternet.com 4.18.0-553.94.1.lve.el8.x86_64 #1 SMP Thu Jan 22 12:37:22 UTC 2026 x86_64
User: urbansports (1371)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //usr/share/cagefs/cpanel/cpanel-delete-cagefs
#!/bin/bash

. /opt/cloudlinux/venv/usr/share/python-cllib/scripts/cl-common

before_apache_make="/scripts/before_apache_make"
posteasyapache="/scripts/posteasyapache"
postupcp="/scripts/postupcp"

target="CageFS"
log_message="Delete hooks"
common_path="/usr/share/cagefs/cpanel"

showBar 1
deleteAllInclude "$before_apache_make" "before_apache_make" "/#$target/d" "$common_path"
showBar 2
writeToLog "before_apache_make: $log_message" "$common_path"

showBar 3
deleteAllInclude "$posteasyapache" "posteasyapache" "/#$target/d" "$common_path"
showBar 4
writeToLog "posteasyapache: $log_message" "$common_path"

showBar 5
deleteAllInclude "$postupcp" "postupcp" "/#$target/d" "$common_path"
showBar 6
writeToLog "postupcp: $log_message" "$common_path"

echo