There are some circumstances when you need to modify a cPanel-distributed file, and you do not want your modifications to be overwritten during a cPanel update.
To exclude specific files from updates, you can 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 please refer to the following page: