Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    3

    Default How to place a hook after some account transfer from other cPanel server?

    Hello,

    I need to place some hook after account transfer from other cPanel server. Is there any possibility to do this? I can't find anything about hooks in transferring in documenttion.

  2. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: How to place a hook after some account transfer from other cPanel server?

    At what point in the process do you want the hook to execute? Some example events that come to mind:
    • After the physical copy, but before account creation
    • After account creation
    • After account is fully transferred
    Kenneth
    Product Manager
    cPanel, Inc.

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    3

    Default Re: How to place a hook after some account transfer from other cPanel server?

    Quote Originally Posted by cpanelkenneth View Post
    At what point in the process do you want the hook to execute? Some example events that come to mind:
    • After the physical copy, but before account creation
    • After account creation
    • After account is fully transferred
    I think "After account is fully transferred" would be the best.

  4. #4
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: How to place a hook after some account transfer from other cPanel server?

    Quote Originally Posted by mlatyshev View Post
    I think "After account is fully transferred" would be the best.
    Then you'll want to use /scripts/postrestoreacct which is passed the following position-dependent arguments:

    Code:
    $user, $olduser, $domain, $user_homedir
    Kenneth
    Product Manager
    cPanel, Inc.

  5. #5
    Registered User
    Join Date
    Feb 2011
    Posts
    3

    Default Re: How to place a hook after some account transfer from other cPanel server?

    Thanks a lot!

Similar Threads & Tags
Similar threads

  1. Filed with Developers [Case 39492] cPanel API : Transfer Account from Another Server
    By KMyers in forum Feature Requests for cPanel/WHM
    Replies: 10
    Last Post: 04-05-2012, 09:12 AM
  2. Replies: 2
    Last Post: 09-18-2009, 04:44 PM
  3. transfer very big cpanel account to another server
    By josesan311 in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-03-2008, 11:07 PM
  4. Ensim -> cPanel transfer putting mailboxes in the wrong place
    By wtl in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-18-2004, 01:36 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube