How to modify Theme from RVBlue to X3 for all accounts?

eurorocco

Well-Known Member
Jun 23, 2003
98
0
156
Hi!

I had discontinued RV Skins from all my servers (!), but one I left for the passionate about it, but its Webmail access is not working today. Does display the email account functions but no Horde, Squirrelmail or Roundcube.

I can ssh and even perl... How can I modify all acounts from RVBlue to X3? Is there one text file I could modify to make this happen or a command-line to do it one by one and then iterate through a script passing it the username?

Thanks!

ER

PD
This is not a Cpanel issue, but an RVSkin issue, but your help is greatly appreciated!
 

eurorocco

Well-Known Member
Jun 23, 2003
98
0
156
Perl script to do this in
/root/setallrvskintox3

<code>
#!/usr/local/bin/perl

$themefrom = "rvblue";
$themeto = "x3";

@users = glob("/var/cpanel/users/*");

foreach $user (@users){
print "replace RS=$themefrom RS=$themeto -- $user\n";
}

print "/scripts/updateuserdomains\n";
</code>

chmod u+x /root/setallrvskintox3
/root/setallrvskintox3 >/root/fixthemes
more /root/fixthemes

If you like the output that should look like...

replace RS=rvblue RS=x3 -- /var/cpanel/users/<user1>
replace RS=rvblue RS=x3 -- /var/cpanel/users/<user2>
replace RS=rvblue RS=x3 -- /var/cpanel/users/<user3>
/scripts/updateuserdomains

Then run at your own risk with...

. /root/fixthemes

Thanks!

ER
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

Assuming all of your accounts use packages, you could simply edit the theme associated with the package via:

"WHM Home » Packages » Edit a Package"

Thank you.
 

electric

Well-Known Member
Nov 5, 2001
790
11
318
Another option:

Go to:

WHM Home »Multi Account Functions »Modify/Upgrade Multiple Accounts

Then scroll down about halfway and on the right-side you'll see a selection section where you can easily choose all accounts for a specific reseller, etc... (This part is not easy to find if you have a lot of accounts and you will have to scroll up/down to find it. I have no idea why cpanel makes this so hard to find...)

Once you have selected the desired accounts, then scroll to the bottom of the page, choose the new cpanel theme, and submit.