Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow using either debian or centos style config, without having to c…

…hange the script sources
  • Loading branch information...
commit 390dddabce4d735bccdb2ca387a79967e0967f9d 1 parent b9ca543
@kaiinkinen authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/
7 src/
@@ -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
# Username to access the mongo server e.g. dbuser
# Unnecessary if authentication is off
Please sign in to comment.
Something went wrong with that request. Please try again.