unixguru
Verified User
Hi,
I use cloudlinux and allow users to have unlimited domains, but have scripts which create a special conf-file in their area ...data/users/RESELLER/special.conf which contains amoungst others a variable MAX_USERS=xxx, so resellers cannot have unlimited sub-accounts.
This file is picked used by user_create_pre to ensure that the number of users has not been exceeded.
I would like to know, if a user is "upgraded" by the API (by hostbill or WHMCS), is there a script that I can customise to re-write the MAX_USERS variable stored in the conf file?
I've had a good look around and not been able to find anything.
Any help would be greatly appreciated.
I use cloudlinux and allow users to have unlimited domains, but have scripts which create a special conf-file in their area ...data/users/RESELLER/special.conf which contains amoungst others a variable MAX_USERS=xxx, so resellers cannot have unlimited sub-accounts.
This file is picked used by user_create_pre to ensure that the number of users has not been exceeded.
I would like to know, if a user is "upgraded" by the API (by hostbill or WHMCS), is there a script that I can customise to re-write the MAX_USERS variable stored in the conf file?
I've had a good look around and not been able to find anything.
Any help would be greatly appreciated.