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.

/scripts/pre* for tweak settings

Discussion in 'General Discussion' started by escalf, Jun 7, 2009.

  1. escalf

    escalf Member
    PartnerNOC

    Joined:
    Sep 30, 2006
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Running MySQL 5.1 on the machine, which requires /etc/mysqldisable and /etc/mysqlupdisable to be in place, otherwise cPanel reverts MySQL to 4.x, causing significant problems, and resulting in MySQL needing to be rebuilt, so on and so forth.

    Given that there's a /scripts/pre* for pretty much everything, is there anything that can be created to ensure that the two files mentioned above are always in place before Tweak Settings changes are processed?

    Just a thought.
    (Yes, I know, create and chattr the files, but I want something that will check for them anyway, just in case.)

    Thanks.
    -Eric
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I don't believe there are any hooks into the Tweak Settings page to run a check scripts before or after. As you say, you need to create and chattr those files before you first go into Tweak Settings and then mysqlup will simply exit without doing anything.
     
Loading...

Share This Page