Merge pull request #687 from olshek/patch-1

improved regular expression in v-backup-user file
This commit is contained in:
Serghey Rodin 2016-06-25 11:20:45 +03:00 committed by GitHub
commit e106fee8d2

View file

@ -434,7 +434,7 @@ if [ "$USER" != '*' ]; then
set -f
i=0
for udir in $(ls -a |egrep -v "conf|web|dns|mail|^\.\.$|^\.$"); do
for udir in $(ls -a |egrep -v "^conf$|^web$|^dns$|^mail$|^\.\.$|^\.$"); do
exclusion=$(echo "$USER" |tr ',' '\n' |grep "^$udir$")
if [ -z "$exclusion" ]; then
((i ++))