Skip to content

Commit

Permalink
Merge pull request #5 from Arendtsen/master
Browse files Browse the repository at this point in the history
Add support for /usr/local/etc/acts.conf
  • Loading branch information
alexjurkiewicz committed Apr 17, 2015
2 parents ac5de74 + 5bc9674 commit 21b2294
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ You can use the development version of acts by cloning this repository, or `down
Usage
-----

1. Take ``acts.conf`` and customise it for your environment. Put it in ``/etc``.
1. Take ``acts.conf`` and customise it for your environment. Put it in ``/etc`` or ``/usr/local/etc``.
2. Run ``acts`` daily from cron.

Notes on behaviour:
Expand Down
5 changes: 4 additions & 1 deletion acts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ if [ -f acts.conf ] ; then
elif [ -f /etc/acts.conf ] ; then
. /etc/acts.conf
log_debug "Loaded /etc/acts.conf"
elif [ -f /usr/local/etc/acts.conf ] ; then
. /usr/local/etc/acts.conf
log_debug "Loaded /usr/local/etc/acts.conf"
else
log_message "No $(pwd)/acts.conf or /etc/acts.conf! Exiting."
log_message "No $(pwd)/acts.conf, /etc/acts.conf or /usr/local/etc/acts.conf! Exiting."
exit 1
fi
# Use default values if anything is not set
Expand Down

0 comments on commit 21b2294

Please sign in to comment.