/etc/cpanelsync.exclude file to prevent updates to cPanel-distributed files. This method causes fewer problems than other methods of update prevention (for example, the use of the
Each entry in the
/etc/cpanelsync.exclude file must use an absolute path, with each path on its own line.
For example, you may wish to prevent an update to the following files:
Use the following commands to add the files' path to the
echo "/usr/local/cpanel/scripts/pkgacct" >> /etc/cpanelsync.exclude echo "/usr/local/cpanel/Cpanel/Logd.pm" >> /etc/cpanelsync.exclude