The enableVirtDomain.sh
script hook runs custom commands placed in the script file. The script will be run whenever the specified domain is enabled.
Syntax: enableVirtDomain.sh site
<n>
where <n> is the site identifier of the site being enabled. Information about the domain can be obtained by using the sitelookup
API.
For example, you could use the script provided to notify Site Administrators whenever their sites are enabled. For more information, see the previous section.