Skip to content

Commit

Permalink
Allow using either debian or centos style config, without having to c…
Browse files Browse the repository at this point in the history
…hange the script sources
  • Loading branch information
Kai Inkinen committed Apr 18, 2012
1 parent b9ca543 commit 390ddda
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/automongobackup.sh
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 390ddda

Please sign in to comment.