Browse by category

Search    |    Advanced search

HowTo :: create default Packages for a new Reseller

If you wish to give a new Reseller a base set of packages to start off with, we suggest creating the following script:

Add the following text:

if [ "$usertype" = "reseller" ]; then
cp -fp $DIR/$BASE/packages.list $DIR/$username/packages.list
cp -fp $DIR/$BASE/packages/* $DIR/$username/packages
exit 0;

The above script will copy all User packages from the BASE account to all newly created Reseller accounts.

Then run the fllowing command:

You may change the admin value to something else, if you wish to copy the default packages from some other Reseller on your server.

Add comment
Views: 1102
Votes: 0
Comments: 0

Other articles in this Category