Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Scripting IP assignments

Discussion in 'General Discussion' started by ehowe, Feb 12, 2009.

  1. ehowe

    ehowe Member
    PartnerNOC

    Joined:
    Feb 19, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    51
    I'm working on an ongoing script to migrate accounts between cpanel servers. I have the entire script written and working wonderfully except for ensuring dedicated IPs are assigned. I haven't yet found a good way to accomplish this. The only way I have found so far is updating /var/cpanel/userdata/$user/$domain(s), /var/cpanel/users/$user, running /scripts/rebuildhttpdconf and then editing the A record in the DNS zone. This seems like a long drawn out process and doesn't seem like it would be the most reliable way. Does anybody know a better way to script this?
     
Loading...
Similar Threads - Scripting assignments
  1. Syneic
    Replies:
    4
    Views:
    529

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice