Jeff_Infopop
Verified User
- Joined
- Jan 23, 2004
- Messages
- 12
We have multiple DirectAdmin machines and each one is tied into the same two named servers.
I am trying to implement a check in the domain_create_pre.sh and domain_change_pre.sh custom scripts that will cause a site create or domain change to stop and display an appropriate error message when the domain being created already exists in our DNS.
I tried having the script exit with error code 1. For a new accout Direct Admin still creates the account and then just notes that there was an error with the custom script when it is finished. For the domain change it won't change the domain but it still gives the generic error with custom script message.
Is there a way to stop the creation process and return some custom error text from these scripts?
Thanks.
I am trying to implement a check in the domain_create_pre.sh and domain_change_pre.sh custom scripts that will cause a site create or domain change to stop and display an appropriate error message when the domain being created already exists in our DNS.
I tried having the script exit with error code 1. For a new accout Direct Admin still creates the account and then just notes that there was an error with the custom script when it is finished. For the domain change it won't change the domain but it still gives the generic error with custom script message.
Is there a way to stop the creation process and return some custom error text from these scripts?
Thanks.