aboutsummaryrefslogtreecommitdiffstats
path: root/bin/problem-creation-graph
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-01-10 11:25:10 +0000
committerStruan Donald <struan@exo.org.uk>2012-01-10 11:25:10 +0000
commit62f0d7ea89e8eda7c74d1467187a2ceddf8dd7d5 (patch)
tree7bda44250fafae1cecb3c7fca02c3ae95163b979 /bin/problem-creation-graph
parent7420afcd206a0e1454ce454078d8a76849207ec0 (diff)
the yaml2sh call in deployfns adds OPTION_ on the front of config key names and is used elsewhere so add OPTION_ back on
Diffstat (limited to 'bin/problem-creation-graph')
-rwxr-xr-xbin/problem-creation-graph4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/problem-creation-graph b/bin/problem-creation-graph
index 2728704e7..4bba1cdb8 100755
--- a/bin/problem-creation-graph
+++ b/bin/problem-creation-graph
@@ -20,7 +20,7 @@ source fixmystreet/commonlib/shlib/deployfns
read_conf fixmystreet/conf/general.yml
-if [ $BASE_URL = "http://reportemptyhomes.com" ]; then
+if [ $OPTION_BASE_URL = "http://reportemptyhomes.com" ]; then
DATE="2008-10-01"
else
DATE="2007-02-01"
@@ -42,7 +42,7 @@ function grab_data {
$1
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" >$2
+ ;" | 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" >$2
}
# rather nastily, work out the cumulative heights in reverse, so can plot impulses on top of each other