summaryrefslogtreecommitdiffstats
path: root/acf-hooks.lua
diff options
context:
space:
mode:
Diffstat (limited to 'acf-hooks.lua')
-rw-r--r--acf-hooks.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/acf-hooks.lua b/acf-hooks.lua
new file mode 100644
index 0000000..203733a
--- /dev/null
+++ b/acf-hooks.lua
@@ -0,0 +1,15 @@
+-- This file is loaded into self.conf.app_hooks as lua source code
+-- The purpose is to add user-specified hooks into the acf code
+
+-- or functions. For functions, three variables are passed:
+-- self, CONFFILE, and TEMPFILE
+
+--[[ This is commented out example code..
+
+tinydns={
+ audit_precommit = function (self, CONFFILE, TEMPFILE)
+ os.execute("echo this is tinydns's precommit command >> /var/log/acf.log")
+ end
+ audit_postcommit = "echo 'this is the tinydns postcommit command.' >>/var/log/acf.log "
+}
+]]--