ACIL FM
Dark
Refresh
Current DIR:
/usr/share/cloudlinux-linksafe/cpanel/hooks
/
usr
share
cloudlinux-linksafe
cpanel
hooks
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
tmp
-
chmod
Open
Rename
Delete
cloudlinux_linksafe_hook.sh
166 B
chmod
View
DL
Edit
Rename
Delete
cpanel-linksafe-delete-hooks
912 B
chmod
View
DL
Edit
Rename
Delete
cpanel-linksafe-install-hooks
2.05 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/share/cloudlinux-linksafe/cpanel/hooks/cpanel-linksafe-delete-hooks
#!/usr/bin/bash source /opt/cloudlinux-linksafe/lib.sh function deleteAllInclude(){ hook_file="$1" tmp_name="$2" pattern="$3" common_path="$4" if [ ! -e "${common_path}/tmp" ]; then mkdir -p "${common_path}/tmp" fi if [ -e "${hook_file}" ];then cat "${hook_file}" | sed "${pattern}" > "${common_path}/tmp/${tmp_name}.tmp.$$" cat "${common_path}/tmp/${tmp_name}.tmp.$$" > "${hook_file}" rm -f "${common_path}/tmp/${tmp_name}.tmp.$$" fi } skip_on_cl_solo if [ ! -e "/usr/local/cpanel/cpanel" ]; then exit 0 fi if [ ! -e "/proc/sys/fs/protected_symlinks_allow_gid" ]; then exit 0 fi POSTUPCP="/scripts/postupcp" TARGET="cloudlinux-linksafe" COMMON_PATH="/usr/share/${TARGET}/cpanel/hooks" deleteAllInclude "${POSTUPCP}" "postupcp" "/#${TARGET}/d" "${COMMON_PATH}" chown -h :root /usr/local/cpanel/base/frontend/paper_lantern/styled/*
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply