script after hosting opening

jocker

Verified User
Joined
Oct 1, 2007
Messages
56
Hi everybody,

I'd like to knwo if it was possible to have some actions made just after adding a new account on DA.

For example I need to do always same actions after each opening.

- make 2 cron jobs
- build a mysql db
- installing mysql data from a .sql file

So does someone know if it's possible to do a such script.

Thank you

Jocker
 
Create:

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

Put your custom code in this file..

Chmod it 755
 
thank you for your reply but my question was more on how to add a crontab by my script and build a mysql DB.

When I add a crontab with ssh, it doesn't appear into ths DA panel.

I also try to find a such function with the API but I can't find anything

Thank you
 
Back
Top