When I create a new domain account using the wwwacct script.. the account is created with the secondary IP... and i don't want that.. i need to create the account with the primary IP.. how can I change that ? because if I do it using WHM there is no problem with IP.. any ideas how to fix this ?
Running from shell:
Running from WHM:
The main problem is that if i use shell it will asign the secondary IP, and after that no more domains can be created and an error appears "unable to find an ip address" (of course, because all IPs are being used..).
Running from shell:
Code:
[email protected] [~]# /scripts/wwwacct domain.org username password
WWWAcct 10.0 (c) 1997-2005 cPanel, Inc.
+===================================+
| New Account Info |
+===================================+
| Domain: domain.org
| Ip: xx.xx.xxx.112 (y) ---------- SECONDARY IP!
Code:
WWWAcct 10.0 (c) 1997-2005 cPanel, Inc.
+===================================+
| New Account Info |
+===================================+
| Domain: prueba.com
| Ip: xx.xx.xxx.111 (n) ---------- PRIMARY IP!