summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
11cfeb7)
copy custom templates from local dir into rt3 configuration dirs
{
tmp_siteconfig=$(mktemp)
tmp_initialdata=$(mktemp)
{
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 ] ;
# if the templates are newer than the actual config, then replace them.
if [ $MONITORPATH/rt3/RT_SiteConfig.pm -nt /etc/rt3/RT_SiteConfig.pm ] ;
+function check_rt_custom ()
+{
+ rsync -qv -az $MONITORPATH/rt3/local/html /usr/share/rt3
+}
+
function check_rt_pghba ()
{
NAME=$RT3_DB_NAME
function check_rt_pghba ()
{
NAME=$RT3_DB_NAME
check_rt_aliases
check_rt_init
check_rt_sendmail
check_rt_aliases
check_rt_init
check_rt_sendmail
+ check_rt_custom # todo: restart httpd if needed.