From 4519408c7455fadab08c882e37d49a528a918acf Mon Sep 17 00:00:00 2001 From: Dave Lane Date: Fri, 5 Jan 2018 23:22:35 +1300 Subject: [PATCH] fixed bad conf file test --- egrdbackup/.gitignore | 1 + egrdbackup/egrdbackup | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 egrdbackup/.gitignore diff --git a/egrdbackup/.gitignore b/egrdbackup/.gitignore new file mode 100644 index 0000000..fee9217 --- /dev/null +++ b/egrdbackup/.gitignore @@ -0,0 +1 @@ +*.conf diff --git a/egrdbackup/egrdbackup b/egrdbackup/egrdbackup index 61fabba..fc93da0 100755 --- a/egrdbackup/egrdbackup +++ b/egrdbackup/egrdbackup @@ -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