Browse by category
Search | Advanced search
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:
#!/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.