aboutsummaryrefslogtreecommitdiff
path: root/lib/httracker/functions
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-10-28 15:39:58 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-10-28 15:39:58 -0200
commitbceaf4a88f0a95078a1052811c055a7f0b4a9cb6 (patch)
treee020d36c557dc56c4bf6855145d902745c9c162c /lib/httracker/functions
parentf1ddb8d2ef435a7f3dc2996df529becd634267dd (diff)
downloadhttruta-bceaf4a88f0a95078a1052811c055a7f0b4a9cb6.tar.gz
httruta-bceaf4a88f0a95078a1052811c055a7f0b4a9cb6.tar.bz2
Support for custom configuration
Diffstat (limited to 'lib/httracker/functions')
-rw-r--r--lib/httracker/functions7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/httracker/functions b/lib/httracker/functions
index 72e762e..2a63ffa 100644
--- a/lib/httracker/functions
+++ b/lib/httracker/functions
@@ -139,7 +139,12 @@ function httracker_setup_folders {
# Set basic environment
function httracker_initialize {
BASE="`dirname $0`"
- source $BASE/config || exit 1
+ source $BASE/config.default || exit 1
+
+ # Load custom config
+ if [ -e "$BASE/config" ]; then
+ source $BASE/config || exit 1
+ fi
# Create folders
httracker_setup_folders