Mini Shell
#!/usr/bin/bash
. /opt/cloudlinux/venv/usr/share/python-cllib/scripts/cl-common
postwwwacct="/scripts/postwwwacct"
prekillacct="/scripts/prekillacct"
postkillacct="/scripts/postkillacct"
postmodifyacct="/scripts/postmodifyacct"
premodifyacct="/scripts/premodifyacct"
target="l.v.e-manager"
common_path="/usr/share/$target/cpanel/hooks"
# we should remove old and no longer used hooks
deleteAllInclude "$postwwwacct" "postwwwacct" "/#$target/d" "$common_path"
deleteAllInclude "$prekillacct" "prekillacct" "/#$target/d" "$common_path"
deleteAllInclude "$postkillacct" "postkillacct" "/#$target/d" "$common_path"
deleteAllInclude "$postmodifyacct" "postmodifyacct" "/#$target/d" "$common_path"
deleteAllInclude "$premodifyacct" "premodifyacct" "/#$target/d" "$common_path"
echo
Zerion Mini Shell 1.0