summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Ostler <scottostler@gmail.com>2012-09-04 21:19:23 -0400
committerScott Ostler <scottostler@gmail.com>2012-09-04 21:19:23 -0400
commiteeb05b5db3e90947d16eaeda5b1e0509c3226218 (patch)
treed5979891357200a3f05c3ad6094f95eaf0b873e1 /src
parent7ca01da5b184752d27ab8d708c66ebba81d7cc67 (diff)
Use DUMP_DBNAME env var
Diffstat (limited to 'src')
-rwxr-xr-xsrc/utils.clj5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils.clj b/src/utils.clj
index aa73ba9..c0b8b28 100755
--- a/src/utils.clj
+++ b/src/utils.clj
@@ -21,10 +21,11 @@
clojure.contrib.seq-utils
clojure.contrib.str-utils
compojure
- config))
+ config
+ ))
(let [db-name "dumpfm"
- db-user "postgres"
+ db-user (or (System/getenv "DUMP_DBNAME") "postgres")
db-pass "root"]
(def *db* {:datasource (doto (new PGPoolingDataSource)
(.setServerName db-server)