The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CPanel refreshing boa.pm

Discussion in 'General Discussion' started by msutton, Sep 17, 2002.

  1. msutton

    msutton Registered

    Joined:
    Sep 13, 2002
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    We have a customer that is using Interchange 4.8.6. My customer was informed that there was a bug in the boa.pm. The consultant fixed the bug and sent it to my customer. The basic changes to the boa.pm file are as follows:

    452,453d454
    & #::logDebug(&BoA post_data response: & . ::uneval($thing) ); & 455d455
    & my $sep = &&BR&&;
    457c457,462
    & $page =~ s/\r*&html&.*$//is;
    ---
    & if ($opt-&{script} =~ /payment/) {
    & $page =~ s#^.*?A HREF=.+\?m=$user&##si;
    & $page =~ s#&.*$##s;
    & } else {
    & $page =~ s/\cM{2}.*$//s;
    & }
    459c464
    & foreach ( split( /$sep/i, $page) ) {
    ---
    & foreach ( split( /\cM|&/, $page) ) {
    466d470

    During cpanel's nightly refresh, it replace the modified boa.pm file. Is there anything that I can do to prevent the modified file from replacing the customize file?
     
  2. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    chattr +i boa.pm

    Should do it.
     
  3. msutton

    msutton Registered

    Joined:
    Sep 13, 2002
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
Loading...

Share This Page