From 2e61c4611155f9dc1f88f5b0d372eeb31400f317 Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Thu, 25 Jun 2009 04:38:41 +0000 Subject: [PATCH] add template translation on all custom templates in rtconf.d/ copy custom templates from local dir into rt3 configuration dirs --- rt3/monitor-rt3.init | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rt3/monitor-rt3.init b/rt3/monitor-rt3.init index 15c85cd..41c8143 100644 --- a/rt3/monitor-rt3.init +++ b/rt3/monitor-rt3.init @@ -54,6 +54,11 @@ function check_rt_siteconfig () { tmp_siteconfig=$(mktemp) tmp_initialdata=$(mktemp) + + # TODO: need a better approach for this. + for f in $MONITORPATH/rt3/rtconf.d/*.pl ; do + update_config PLC_RT_HOSTNAME $PLC_RT_HOST $f + done # if the templates are newer than the actual config, then replace them. if [ $MONITORPATH/rt3/RT_SiteConfig.pm -nt /etc/rt3/RT_SiteConfig.pm ] ; @@ -84,6 +89,11 @@ function check_rt_siteconfig () fi } +function check_rt_custom () +{ + rsync -qv -az $MONITORPATH/rt3/local/html /usr/share/rt3 +} + function check_rt_pghba () { NAME=$RT3_DB_NAME @@ -194,6 +204,7 @@ case "$1" in check_rt_aliases check_rt_init check_rt_sendmail + check_rt_custom # todo: restart httpd if needed. result "$MESSAGE" ;; -- 2.43.0