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.

Change All Users WHM Themes and CPanel Themes

Discussion in 'General Discussion' started by ukhost, Oct 1, 2002.

  1. ukhost

    ukhost Well-Known Member

    Joined:
    Jan 8, 2002
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    Is it possible to run a command that will change all cpanels to use a theme of my choise without manually accessing each account in whm and changing it?

    Also is there a quick way to change all resellers whm to use a particular skin so I can remove skins we don't want to use without causing a problem?

    Kind Regards,

    Neil
     
  2. MattF

    MattF Active Member

    Joined:
    May 5, 2002
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    chaning cpanel and whm themes

    create a script as follows:

    --------------------
    !#/bin/bash

    echo &simple& &$1

    --------------------

    Save the script as changetheme.sh and chmod it to 755.

    Then use the following command
    find / -name '.whmtheme' -exec /home/mydir/changetheme.sh {} \;

    This will search for all .whmtheme and overwrite them with the text simple. Replace simple with whatever WHM theme you wish to use, I've just been using Simple CP :)



    To change all Cpanel users skins do:

    cd /var/cpanel/users/
    replace RS=default RS=Xskin -- *
    replace RS=iconic RS=Xskin -- *
    replace RS=blue_lagoon RS=Xskin -- *
    replace RS=tree RS=Xskin -- *
    replace RS=advanced RS=Xskin -- *

    Let me know is it works :)
     
  3. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    /usr/local/cpanel/users

    you can also use replace command this way:

    replace RS=default RS=Xskin RS=iconic RS=Xskin RS=blue_lagoon RS=Xskin RS=tree RS=Xskin RS=advanced RS=Xskin -- *
     
Loading...

Share This Page