workflow.publish_hook
Background
This options specifies the path to the Perl script to execute when a file is edited or deleted in the Admin UI or Admin API.
When a file is edited, the script will be called with the following arguments:
-
source
: Absolute path to the source file that was edited -
dummy argument for backwards compatibility
: A dummy argument for backwards compatibility in the form: `REMOTE[OS_SPECIFIC_FILE_SEPARATOR][FILE_NAME]. This can be ignored. -
message
: Publication message containing the user id and host on which the publication occurs.
When a file is deleted the script will be called with:
-
--delete
: To specify that it’s a delete operation -
source
: Absolute path to the file being deleted -
message
: Publication message containing the user id and host on which the deletion occurs.