Skip to content

Commit

Permalink
improved config include
Browse files Browse the repository at this point in the history
  • Loading branch information
noqqe committed Apr 15, 2011
1 parent 2a92436 commit a90fd6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
conf/rt-stats.local
10 changes: 9 additions & 1 deletion rt-stats
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@
# Date: Tuesday 2011-04-12

### Include configuration
source conf/rt-stats.conf
if [ -e conf/rt-stats.conf ]; then
source conf/rt-stats.conf
if [ -e conf/rt-stats.local ]; then
source conf/rt-stats.local
fi
else
echo "Error: Could not find config file conf/rt-stats.conf"
exit 1
fi

### Load modules

Expand Down

0 comments on commit a90fd6c

Please sign in to comment.