Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Cpanel theme does reset itself

Discussion in 'General Discussion' started by Domenico, Aug 28, 2001.

  1. Domenico

    Domenico Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    371
    Likes Received:
    1
    Trophy Points:
    318
    I created my own dir(theme) in the frontend dir and changed some text and links but it gets resetted every time cpanel is being updated.

    I DON\'T WANT MY DIR(THEME)TO BE UPDATED!!!!!!!!!!!!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. feanor

    feanor Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    836
    Likes Received:
    0
    Trophy Points:
    316
    It\'s true, this does appear to occur on all our machines as well. I have a perl script that does a search/replace periodically, after the lovely cpanel updater runs. You might want to look into that, *OR* just make all the files in /var/cpanel/users immutable with \"chattr +i /var/cpanel/users/*\" ... you\'ll have to UNset that to edit the profiles in the future, but it will prevent the themes from being reset.

    If you have any questions about this let me know!
    Good luck.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Domenico

    Domenico Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    371
    Likes Received:
    1
    Trophy Points:
    318
    Can a cpanel developer respond to this one please?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Brownie

    Brownie Well-Known Member

    Joined:
    Aug 10, 2001
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    316
    [quote:5874638e51]It\'s true, this does appear to occur on all our machines as well. I have a perl script that does a search/replace periodically, after the lovely cpanel updater runs. You might want to look into that, *OR* just make all the files in /var/cpanel/users immutable with \"chattr +i /var/cpanel/users/*\" ... you\'ll have to UNset that to edit the profiles in the future, but it will prevent the themes from being reset.

    If you have any questions about this let me know!
    Good luck.[/quote:5874638e51]

    I dont think thats what Domenico meant ;)

    Domenico, SSH into your server and type:

    cd /usr/local/cpanel/base/frontend/
    chattr +i themename

    If you are editing the theme called default, themename is default, otherwise iconic etc


    ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Domenico

    Domenico Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    371
    Likes Received:
    1
    Trophy Points:
    318
    Thanks Nicholas Feanor!

    I just wanted to be sure if everything was going to be ok if I protected my own dir.

    Thanks,
    Domenico
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice