/scripts/modify_accounts isn't working

MuNLoK

Active Member
Jul 14, 2004
25
0
151
Seville / Madrid - Spain
cPanel Access Level
DataCenter Provider
Moved from: Change Style For All Accounts

Hi @cPanelKenneth

The script to modify all accounts seems to be not working properly:

/usr/local/cpanel/scripts/modify_accounts --all-users --theme=paper_lantern --style=basic

Have 2 problems:

1) If you have a account with disk quota exceeded, the script exit prematurely and doesn't continue with the others

2) And more serious, the style is not changing correctly, it seems that it only changes it half, or with errors. I had to go account by account to put back the correct style through cpanel.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
Hello @MuNLoK,

1) If you have a account with disk quota exceeded, the script exit prematurely and doesn't continue with the others
I've been unable to reproduce this issue on both cPanel & WHM version 68 and cPanel & WHM version 70. While the script does fail to update the style for account's over their disk space quota, it does not exit prematurely. It continues to update the style for accounts not over their disk space quota and notes a warning at the bottom of the output to inform about the users that were not updated:

warn [modify_accounts] Could not update these users: cpuser123
Can you verify that you are seeing different behavior?

2) And more serious, the style is not changing correctly, it seems that it only changes it half, or with errors. I had to go account by account to put back the correct style through cpanel.
Here's an existing thread with information on the existing case open for this issue:

modify_accounts script doesn't clear cache

Thank you.