Bug 65233 - Have mod_dav trigger an action on file manipulation
Summary: Have mod_dav trigger an action on file manipulation
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_dav (show other bugs)
Version: 2.4-HEAD
Hardware: All FreeBSD
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-11 21:28 UTC by Rob
Modified: 2021-04-11 21:28 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob 2021-04-11 21:28:42 UTC
Hi,

It would be nice if mod_dav could trigger an action when a file or directory is added, modified or deleted. This would enable me to run a virus scanner, send out an email or an sms, copy the file to a version control system, etc. I'm thinking of a simple setting like

DAVNotify /usr/local/bin/davtrigger.sh

This would allow me to execute any action I like.

The command in question should then probably be called with these arguments:
- the manipulation (add, modify, move, delete, ...)
- username of the user who made the manipulation
- the path to the manipulated file

Having this would really make me happy. Thanks for considering.

Cheers,
  Rob LA LAU