The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Automatically copy tomcat application to each customer?

Discussion in 'General Discussion' started by iScotts, Mar 14, 2014.

  1. iScotts

    iScotts Registered

    Joined:
    Mar 14, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    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..
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page