add apply_template to generalize the translation of parameterized files into
[plcrt.git] / setup.d / addwatchers.sh
diff --git a/setup.d/addwatchers.sh b/setup.d/addwatchers.sh
new file mode 100644 (file)
index 0000000..f193df8
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+RTDIR=/usr/share/plcrt
+for f in /etc/rt3/conf.d/*.pl ; do 
+       $RTDIR/addwatchers.pl --action insert --dba postgres --datafile $f
+done