Automatically copy tomcat application to each customer?

iScotts

Registered
Mar 14, 2014
1
0
1
cPanel Access Level
Root Administrator
Hi guys. I have a Tomcat application that I will be providing to my clients. Now I want setup my WHM in a way that when a customers signs up WHM must copy the application folder from where I stored it and into the clients account folder (Im assuming thats how WHM divides accounts?), make a few changes to some files and then execute the start.sh?

If anyone can help me get started i would really appreciate that..

Thank you looking forward to your responses..
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,225
463
Hello :)

This would involve developing a custom script that runs automatically after an account is created. After you develop a script that performs the tasks you need it to, you could have it run automatically after each account is created through a hook. The following documents are a good place to start:

Standardized Hooks - Hookable Events
Accounts::Create Hookable Event

Thank you.