Accouont creation. New account or restore?

unixguru

Verified User
Joined
Mar 6, 2010
Messages
71
Location
Four Marks, Alton, Hampshire
A simple question, I'm not expecting a Yes, but thought I would ask anyway.

When an account is created, is there anything that you can do to determine whether the account creation is 'new' (though the GUI, or from WHCS/Hostbill) or a Restore (kicked off by DirectAdmin's GUI).

Only I restrict the number of subaccounts you can create through a script (user_create_pre), but I would like that restriction to be ignored if performing a restore.

Any ideas?

Thanks in advance for any help given.
 
If you use the all_pre.sh instead of the user_create_pre.sh, you can block the CMD_ACCOUNT_USER and the CMD_API_ACCOUNT_USER, based on the info you want.
Leave the user_create_pre.sh out of it in this case, as there are not any "tells" to my knowledge to figure out who called it.

This is somewhat similar:
http://help.directadmin.com/item.php?id=165

but you'd be checking for Users rather than domains.

John
 
Back
Top