Skip to content

Commit e106fee

Browse files
Merge pull request hestiacp#687 from olshek/patch-1
improved regular expression in v-backup-user file
2 parents 034b2cf + 170bd64 commit e106fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-backup-user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ if [ "$USER" != '*' ]; then
434434
set -f
435435
i=0
436436

437-
for udir in $(ls -a |egrep -v "conf|web|dns|mail|^\.\.$|^\.$"); do
437+
for udir in $(ls -a |egrep -v "^conf$|^web$|^dns$|^mail$|^\.\.$|^\.$"); do
438438
exclusion=$(echo "$USER" |tr ',' '\n' |grep "^$udir$")
439439
if [ -z "$exclusion" ]; then
440440
((i ++))

0 commit comments

Comments
 (0)