I'm working on a cPanel integration and we use custom config keys stored in
The way we currently do this when we want to add a new key, is to loop over every file in the
I was wondering if there's a common config file with keys that are inherited by every existing user, where we can add such custom flags. Or is looping and modifying individual user configs the only way to do this?
Would love any advise on this and what'd be the general recommendation.
/var/cpanel/users/<username>
config files to toggle certain functionalities.The way we currently do this when we want to add a new key, is to loop over every file in the
/var/cpanel/users
directory and modify them which seems a bit overkill, and quite possibly unsafe if there're large number of users. It's possible to add this parameter using the modify/create account hooks but I'd like this to happen as soon as our custom integration is installed or updated.I was wondering if there's a common config file with keys that are inherited by every existing user, where we can add such custom flags. Or is looping and modifying individual user configs the only way to do this?
Would love any advise on this and what'd be the general recommendation.