Hello,
I'd like to use the /scripts/createacct function via SSH using just the domain, username, password, and plan variables. Is there a way to do this?
For example, currently when running /scripts/createacct it provides a guide:
If there's a way around this, that would be extremely helpful, so that I could just run the command like this:
/scripts/createacct domain user pass plan
I'd like to use the /scripts/createacct function via SSH using just the domain, username, password, and plan variables. Is there a way to do this?
For example, currently when running /scripts/createacct it provides a guide:
Please use the following syntax:
createacct <domain> <user> <pass> <quota> <cpmod[advanced/?]> <ip[y/n]> <cgi[y/n]> <frontpage[always n]> <maxftp> <maxsql> <maxpop> <maxlst> <maxsub> <bwlimit> <hasshell[y]/[n]> <owner> <plan> <maxpark> <maxaddon> <featurelist> <contactemail> <use_registered_nameservers> <language> <spamassassin[Y/n]> <max_emailacct_quota>
However, am I going to have to fill out all of the variables between <pass> and <owner> just to get to <plan>? That seems rather ridiculous, but if so, how would I fill them out so that they are ignored/default and only the plan is custom/recognized? Would it looks something like:createacct <domain> <user> <pass> <quota> <cpmod[advanced/?]> <ip[y/n]> <cgi[y/n]> <frontpage[always n]> <maxftp> <maxsql> <maxpop> <maxlst> <maxsub> <bwlimit> <hasshell[y]/[n]> <owner> <plan> <maxpark> <maxaddon> <featurelist> <contactemail> <use_registered_nameservers> <language> <spamassassin[Y/n]> <max_emailacct_quota>
/scripts/createacct domain.com cpuser PaSsWoRd 0 0?[cpmod?] n n n 0 0 0 0 0 0 n cpuser plan_name 0 0 default [email protected] y 0?[language?] y 0
If there's a way around this, that would be extremely helpful, so that I could just run the command like this:
/scripts/createacct domain user pass plan
Last edited: