mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 05:14:08 -07:00
Merge pull request #687 from olshek/patch-1
improved regular expression in v-backup-user file
This commit is contained in:
commit
e106fee8d2
1 changed files with 1 additions and 1 deletions
|
@ -434,7 +434,7 @@ if [ "$USER" != '*' ]; then
|
||||||
set -f
|
set -f
|
||||||
i=0
|
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$")
|
exclusion=$(echo "$USER" |tr ',' '\n' |grep "^$udir$")
|
||||||
if [ -z "$exclusion" ]; then
|
if [ -z "$exclusion" ]; then
|
||||||
((i ++))
|
((i ++))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue