vacation_set_pre.sh vacation_set_post.sh

Version 1.514

Feature
Finished

Custom scripts; /usr/local/directadmin/scripts/custom/vacation_set_pre.sh /usr/local/directadmin/scripts/custom/vacation_set_post.sh used when the User sets a vacation message (creation or alteration) The pre.sh must exit with code 0, in order to succeed. Exit with non-zero code and the vacation message will not be set. Echo any text you want displayed. The post.sh exit code has no effect, on the setting of the vacation message, but you can set a non-zero exit code on post.sh which will throw a text output error in the GUI, if you just need to mention something. Environmental variables vary depending on the exim.conf version (4.4.1+ gives more options). Run DA in debug mode to see everything that's passed. https://help.directadmin.com/item.php?id=293 the "username" is also added to the variables. The "post.sh" gets a return_code=1 (good) or return_code=0 (bad) included, depending on if the actual setting process succeeded. If the pre-checks or pre.sh scripts failed, then the post.sh won't be called.

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