Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    2

    Question Run command each time domain is added

    I need to run some command each time domain is added (domain/subdomain/addon domain) - the action that usually required after apache config is changed. I am in doubt if /scripts/postwwwacct and /scripts/postupdateuserdomains are the correct? They don't looks to be used.

    http://etwiki.cpanel.net/twiki/bin/v...ks/ScriptHooks

    Thanks!
    Last edited by someB0dy; 05-24-2010 at 03:33 AM.

  2. #2
    Registered User
    Join Date
    May 2010
    Posts
    2

    Default

    Quote Originally Posted by someB0dy View Post
    I need to run some command each time domain is added (domain/subdomain/addon domain) - the action that usually required after apache config is changed. I am in doubt if /scripts/postwwwacct and /scripts/postupdateuserdomains are the correct? They don't looks to be used.

    cPanel/WHM Script Hooks

    Thanks!

    The /scripts/postupdateuserdomains is enough, but it should have executable permissions, got it working with 755 .

    Solved.

Similar Threads & Tags
Similar threads

  1. Run a command after a finished Backup
    By asturmas in forum Data Protection
    Replies: 5
    Last Post: 09-27-2008, 09:04 AM
  2. run script after domain is added/account created
    By izghitu in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-10-2007, 12:29 PM
  3. Run script from command line
    By nileshwarade in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-24-2006, 03:55 PM
  4. oops, please run a command for me
    By c9net in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-21-2004, 01:36 AM
  5. How to run unpkgacct from command line?
    By Shiekron2 in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 05-04-2004, 12:35 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube