Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.
This object is in archive! 

cpbackup parse userskip file AFTER precpbackup

alwaysweb shared this idea 11 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