Introduction
There are some circumstances in which you need to modify a cPanel-distributed file, and you do not want your modifications to be overwritten during a cPanel update.
Procedure
To exclude specific files from updates, add the filename to /etc/cpanelsync.exclude
, for example:
echo "/usr/local/cpanel/scripts/pkgacct" >> /etc/cpanelsync.exclude
For more information about the use of the /etc/cpanelsync.exclude
file refer to the following page: