From cae6d5f26a53d793feeb14f5b6323a623a8250d2 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Tue, 10 Jan 2012 09:38:24 +0000 Subject: use yaml conf for graph generation scripts --- bin/problems-filed-graph | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/problems-filed-graph') diff --git a/bin/problems-filed-graph b/bin/problems-filed-graph index 702bea651..e84e9bbf0 100755 --- a/bin/problems-filed-graph +++ b/bin/problems-filed-graph @@ -18,7 +18,7 @@ cd `dirname $0` cd ../../ source fixmystreet/commonlib/shlib/deployfns -read_conf fixmystreet/conf/general +read_conf fixmystreet/conf/general.yml SOURCEO=/tmp/bci-report-rate-graph-data-nonwmc-$RANDOM$RANDOM GPSCRIPT=/tmp/bci-report-rate-graph-script-$RANDOM$RANDOM -- cgit v1.2.3 From b913597550b962db73715709dcd6fa1b274eb625 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Tue, 10 Jan 2012 09:42:21 +0000 Subject: BCI -> FMS conf change for graph generation scripts --- bin/problems-filed-graph | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/problems-filed-graph') diff --git a/bin/problems-filed-graph b/bin/problems-filed-graph index e84e9bbf0..a2282afdb 100755 --- a/bin/problems-filed-graph +++ b/bin/problems-filed-graph @@ -29,7 +29,7 @@ echo "select where state not in ('unconfirmed', 'hidden') group by date(created) order by date(created) - ;" | psql --host $OPTION_BCI_DB_HOST --port $OPTION_BCI_DB_PORT -A -F " " $OPTION_BCI_DB_NAME $OPTION_BCI_DB_USER | egrep -v "date|rows" >$SOURCEO + ;" | psql --host $FMS_DB_HOST --port $FMS_DB_PORT -A -F " " $FMS_DB_NAME $FMS_DB_USER | egrep -v "date|rows" >$SOURCEO #echo "source $SOURCEO" cat >$GPSCRIPT < Date: Tue, 10 Jan 2012 11:25:10 +0000 Subject: the yaml2sh call in deployfns adds OPTION_ on the front of config key names and is used elsewhere so add OPTION_ back on --- bin/problems-filed-graph | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/problems-filed-graph') diff --git a/bin/problems-filed-graph b/bin/problems-filed-graph index a2282afdb..dbac35639 100755 --- a/bin/problems-filed-graph +++ b/bin/problems-filed-graph @@ -29,7 +29,7 @@ echo "select where state not in ('unconfirmed', 'hidden') group by date(created) order by date(created) - ;" | psql --host $FMS_DB_HOST --port $FMS_DB_PORT -A -F " " $FMS_DB_NAME $FMS_DB_USER | egrep -v "date|rows" >$SOURCEO + ;" | psql --host $OPTION_FMS_DB_HOST --port $OPTION_FMS_DB_PORT -A -F " " $OPTION_FMS_DB_NAME $OPTION_FMS_DB_USER | egrep -v "date|rows" >$SOURCEO #echo "source $SOURCEO" cat >$GPSCRIPT <