Change All Users WHM Themes and CPanel Themes

ukhost

Well-Known Member
Jan 8, 2002
222
0
316
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
 

MattF

Active Member
May 5, 2002
35
0
306
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 :)
 

itf

Well-Known Member
May 9, 2002
624
0
316
/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 -- *