aboutsummaryrefslogtreecommitdiffstats
path: root/script/request-creation-graph
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2009-10-29 00:04:02 +0000
committerFrancis Irving <francis@mysociety.org>2009-10-29 00:04:02 +0000
commit08fd7e6293fb9e2b01924f77e75e5af5e813ecf1 (patch)
treed48b40eb2c7aff0b1eb18d874f86685e35fbc00c /script/request-creation-graph
parentf9ea28feaef20310289069f7ec1d7412984fe599 (diff)
shlib in new place
Diffstat (limited to 'script/request-creation-graph')
-rwxr-xr-xscript/request-creation-graph14
1 files changed, 7 insertions, 7 deletions
diff --git a/script/request-creation-graph b/script/request-creation-graph
index 186626d7c..3b7741ee2 100755
--- a/script/request-creation-graph
+++ b/script/request-creation-graph
@@ -16,14 +16,14 @@ LW=4
#EXTENSION=".svg"
cd `dirname $0`
-cd ../../
-source shlib/deployfns
+cd ../
+source commonlib/shlib/deployfns
# XXX this is nasty :)
-OPTION_FOI_DB_HOST=`grep "host:" foi/config/database.yml | head --lines=1 | cut -d ":" -f 2`
-OPTION_FOI_DB_PORT=`grep "port:" foi/config/database.yml | head --lines=1 | cut -d ":" -f 2`
-OPTION_FOI_DB_NAME=`grep "database:" foi/config/database.yml | head --lines=1 | cut -d ":" -f 2`
-OPTION_FOI_DB_USER=`grep "username:" foi/config/database.yml | head --lines=1 | cut -d ":" -f 2`
+OPTION_FOI_DB_HOST=`grep "host:" config/database.yml | head --lines=1 | cut -d ":" -f 2`
+OPTION_FOI_DB_PORT=`grep "port:" config/database.yml | head --lines=1 | cut -d ":" -f 2`
+OPTION_FOI_DB_NAME=`grep "database:" config/database.yml | head --lines=1 | cut -d ":" -f 2`
+OPTION_FOI_DB_USER=`grep "username:" config/database.yml | head --lines=1 | cut -d ":" -f 2`
SOURCEA=/tmp/foi-creation-rate-graph-data-$RANDOM$RANDOM
SOURCEB=/tmp/foi-creation-rate-graph-data-$RANDOM$RANDOM
@@ -120,6 +120,6 @@ END
#echo "gpscript $GPSCRIPT"
export GDFONTPATH=/usr/share/fonts/truetype/ttf-bitstream-vera
-gnuplot < $GPSCRIPT > foi/public/foi-live-creation$EXTENSION
+gnuplot < $GPSCRIPT > public/foi-live-creation$EXTENSION