install-eg.sh: action trigger filters
[sitka/sitka-tools.git] / deployment / install-eg.sh
index 6e13685..a6fb4a3 100755 (executable)
@@ -114,6 +114,14 @@ if [[ ! -n "$PROD" ]] ; then
     cp ${SITKACONF}/files/etc/logrotate.d/evergreen/${HOSTNAME} /etc/logrotate.d/evergreen
   fi
 fi
+
+# action trigger filters (prod only)
+if [[ -n "$PROD" ]] ; then
+  if [ -f "${INSTALLDIR}/conf/action_trigger_filters.json" ] ; then
+    mv ${INSTALLDIR}/conf/action_trigger_filters.json ${INSTALLDIR}/conf/action_trigger_filters.json.`date +%Y-%m-%d-%H%M%S`
+  fi
+  cp ${SITKACONF}/files/${INSTALLDIR}/conf/action_trigger_filters.json/${HOSTNAME} ${INSTALLDIR}/conf/action_trigger_filters.json
+fi
  
 # 0. osrf conf stuff 
 # FIXME: ensure osrf conf files point at a real, distinct db!