domain_modify_pre.sh and domain_modify_post.sh

Version 1.38

Feature
Finished

Custom scripts for when a User modifies a domain (changes ssl, bandwidth, settings, etc..) This is not for the change of a domain name, that's domain_change_pre.sh and domain_change_post.sh. The variables passed will be all of the variables from: /usr/local/directadmin/data/users/username/domains/domain.com.conf but overwritten with the new settings specified by the user in the post. Also, the username and domain variables will be included (somewhat important) The pre will be called after all filtering of variables, but before the write of the domain.com.conf. The post will be call after the write, (which is essentially all that happens with the domain modification) Like other sh scripts, you can exit with a non-zero value, and DA will abort, and display your echo'ed text. This is mainly for the pre.sh, as the post.sh is too late to abort anything (but your text will still be shown)

Interested to try DirectAdmin? Get a 30-day Free Trial!