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 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:
    362
    Likes Received:
    0
    Trophy Points:
    16
    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!!!!!!!!!!!!
     
  2. feanor

    feanor Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    836
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  3. Domenico

    Domenico Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    362
    Likes Received:
    0
    Trophy Points:
    16
    Can a cpanel developer respond to this one please?
     
  4. Brownie

    Brownie Well-Known Member

    Joined:
    Aug 10, 2001
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    16
    [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


    ;)
     
  5. Domenico

    Domenico Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    362
    Likes Received:
    0
    Trophy Points:
    16
    Thanks Nicholas Feanor!

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

    Thanks,
    Domenico
     
Loading...

Share This Page