cPanel & WHM Version 108 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!
This object is in archive! 

cpbackup parse userskip file AFTER precpbackup

alwaysweb shared this idea 10 years ago
Open Discussion

We have cpbackup configured to use the /scripts/precpbackup script.


We are actually updating the /etc/cpbackup-userskip.conf file with precpbackup, but this is not being applied because the userskip file is being read BEFORE the precpbackup script gets a change to run:


Line 274... of /scripts/cpbackup:


if ( open my $userskip_fh, '<', '/etc/cpbackup-userskip.conf' ) { while (<$userskip_fh>) { chomp; $SKIPUSERS{$_} = 1; } close $userskip_fh;}


line 491 of /scripts/cpbackup:


system '/usr/local/cpanel/scripts/precpbackup';


Fixing this is simple. Please either:


1) Move the userskip loading after line 491.


or


2) Run precpbackup at the top of the script BEFORE userskip gets read.

Leave a Comment
 
Attach a file