Mini Shell
#!/usr/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
Zerion Mini Shell 1.0