Merge branch 'patch-1' into 'master'

Fixes for configuration files without suffix.

Closes #11287

See merge request riseuplabs/backupninja!16
This commit is contained in:
lavamind 2018-06-27 17:35:03 -07:00
commit 464b84dcfe

View File

@ -588,9 +588,9 @@ for file in $files; do
check_perms ${file%/*} # check containing dir
check_perms $file
suffix="${file##*.}"
base=`basename $file`
if [ "${base:0:1}" == "0" -o "$suffix" == "disabled" ]; then
suffix="${base##*.}"
if [ "${base:0:1}" == "0" -o "$suffix" == "disabled" -o "$suffix" == "$base" ]; then
info "Skipping $file"
continue
fi