reset users to use default style
Hi
How can we reset all users to use default style?
As it is now, all users that have not earlier changed style can be changed via WHM Cusomtization, but if the account has changed style sometime in history, they will not be changed.
I know there is a script that can be used to just change the style ( /usr/local/cpanel/scripts/modify_accounts --all-users --theme=paper_lantern --style=whatever ) but I want the accounts to be reset to use the default so when we change next time, they will also change
Somewhere very, very long back and deep down in my head I kind of remember there should be some files on each account that has to be removed, but I just can't remember which ones ...
Any help would be appreciated.
-
Finally my brain started working again and I remembered what to do. Posting it here if someone else has the same issues The setting for an accounts style is in /home/username/var/cpanel/styled/ and in that directory there is a symlink pointing to the style used. ex current_style -> /usr/local/cpanel/base/frontend/paper_lantern/styled/retro/ To find all accounts not using the default style you could use f ex: find /home/*/var/cpanel/styled/current_style -ls Removing the symlink will make the account use the default style instead. 0 -
You can also specify this through the modifyacct API call as mentioned here: whmapi1 modifyacct user='username' STYLE=""
which will force it to use the default for the server.0
Please sign in to leave a comment.
Comments
2 comments