public_html_link_set_pre.sh and public_html_link_set_post.sh

Version 1.41.0

Feature
Finished

Pre/post hook scripts, triggered when the lnk: /home/user/public_html is create or set (happens fairly often). scripts: /usr/local/directadmin/scripts/custom/public_html_link_set_pre.sh /usr/local/directadmin/scripts/custom/public_html_link_set_post.sh Variables: username=bob domain=domain.com #value link is being set to. main_domain=maindomain.com #value which is set in the user.conf old_public_html_link=1|0 #value from the directadmin.conf, will usually be set to 1. The 0 method is a directory. apache_public_html=1|0 #Usually will be 0. Old value of 1 was from when the public_html was chgrp to apache. If you exit with a non-zero value from public_html_link_set_pre.sh, then the entire process will be skipped. Note that you'd be on your own for handing any issues that may arise from not having the link set. (untested, unknown)

Try DirectAdmin with a 30-day money back guarantee!