fixed bad conf file test

This commit is contained in:
Dave Lane 2018-01-05 23:22:35 +13:00
parent 16492ef649
commit 4519408c74
2 changed files with 2 additions and 1 deletions

1
egrdbackup/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.conf

View file

@ -70,7 +70,7 @@ BACKUP_STATUS="[SUCCESS]"
if [ $DEBUG == "true" ] ; then
echo "Get Local Settings"
fi
if [ -x $CONF_FILE ] ; then
if [ -r $CONF_FILE ] ; then
. $CONF_FILE
else
$CAT_COMMAND $LOGFILE | $MAIL_COMMAND -s "[ERROR] Could not find config file for $SERVERNAME backup" $MAIL_TO