Add user directory upon creation

SICK

Verified User
Joined
Dec 19, 2003
Messages
24
I can't find the script that adds a user, so I guess this means its hardcoded and I can't change it.

But I would like to create a directory and put some files in it upon user creation, much like when DA creates the public_html and copies the logo and index file to it.

example... create dir stats and copy index.html and index.swf into the directory.
 
/usr/local/directadmin/scripts/custom/README

/usr/local/directadmin/scripts/custom/user_create_post.sh

John
 
ok this is wot I did....

created a file called user_create_post.sh
in the file is

#!/bin/sh
cp -rf /somedirectory/somewhere/thisone /home/|username|/public_html/

but this does not work..... can you give me an example?
 
Code:
#!/bin/sh
cp -rf /somedirectory/somewhere/thisone /home/${username}/public_html/

Chris
 
Back
Top