diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-10-28 15:39:58 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-10-28 15:39:58 -0200 |
commit | bceaf4a88f0a95078a1052811c055a7f0b4a9cb6 (patch) | |
tree | e020d36c557dc56c4bf6855145d902745c9c162c /lib/httracker/functions | |
parent | f1ddb8d2ef435a7f3dc2996df529becd634267dd (diff) | |
download | httruta-bceaf4a88f0a95078a1052811c055a7f0b4a9cb6.tar.gz httruta-bceaf4a88f0a95078a1052811c055a7f0b4a9cb6.tar.bz2 |
Support for custom configuration
Diffstat (limited to 'lib/httracker/functions')
-rw-r--r-- | lib/httracker/functions | 7 |
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 |