ServerTune

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:
/usr/local/directadmin/scripts/custom/user_create_post.sh

Add the following text:

#!/bin/sh
BASE=admin
if [ "$usertype" = "reseller" ]; then
DIR=/usr/local/directadmin/data/users
cp -fp $DIR/$BASE/packages.list $DIR/$username/packages.list
cp -fp $DIR/$BASE/packages/* $DIR/$username/packages
fi
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

RSS