Save a specific package with command line - XML File

mywhm

Active Member
Jan 15, 2014
37
2
58
cPanel Access Level
Root Administrator
Hello. I create an account with this command:

Code:
yes | /scripts/createacct domain.com userdomain pass
I have a package already created, but I want back save that package with command line in console.

Example: mypackage
back save: mypackage by console

¿ how could I do it with command line console ?

About Xml, there any way to change the values ​​of package creation See this image:
package.jpg
As default is unlimited. I would like to change that option, this could change according to my preferences, so each time I create a package I'll see my preferences, in the cms This I can do editing the XML files.

¿In cpanel is same?

Thank You.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello :)

In addition to the previous post, you can also modify the "PLAN=" entry in the "/var/cpanel/users/$username" file if you need to change the package assigned to the account. Remember to run the following command after manually modifying that file:

Code:
/usr/local/cpanel/scripts/updateuserdomains
Thank you.