Skip to content

Commit

Permalink
Merge pull request #13 from kaiinkinen/master
Browse files Browse the repository at this point in the history
Support both debian and centos/redhat type config out-of-the-box
  • Loading branch information
jalogisch committed Apr 22, 2012
2 parents b9ca543 + 390ddda commit 9b0a36f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/automongobackup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@
#=====================================================================

# External config - override default values set below
# EXTERNAL_CONFIG="/etc/default/automongobackup" # debian style
EXTERNAL_CONFIG="/etc/sysconfig/automongobackup" # centos style
if [ -f "/etc/default/automongobackup" ]; then
EXTERNAL_CONFIG="/etc/default/automongobackup" # debian style
elif [ -f "/etc/sysconfig/automongobackup"]; then
EXTERNAL_CONFIG="/etc/sysconfig/automongobackup" # centos style
fi

# Username to access the mongo server e.g. dbuser
# Unnecessary if authentication is off
Expand Down

0 comments on commit 9b0a36f

Please sign in to comment.